home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / MODEMPRO / ACE20B.ZIP;1 / MACRO.DOC < prev    next >
Encoding:
Text File  |  1994-07-27  |  94.3 KB  |  3,925 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.      ‹‹‹‹‹                        ‹‹‹‹‹
  11.   fi€€€€€€€€›   ‹‹‹‹‹           fi€€€€€€€€›
  12.  fi€€€€ fi€€€€fi€€€€€€€€› ‹‹‹‹‹‹‹fi€€€€  €€€€ ‹‹‹‹‹
  13.  fi€€€› fi€€€fi€€€€  €€€€fi€€€€€€€fi€€€›      €€€€€€€›
  14. fi€€€€€€€€€€fi€€€›      €€€€    fi€€€€     €€€   €€€   ‹‹‹‹‹‹      ‹‹‹‹‹
  15. fi€€€› fi€€€fi€€€€€     €€€€€€€fi€€€€€     €€€     €€€fi€€€€€€€€€ fi€€€€€€€€€
  16. €€€€ fi€€€€fi€€€›  €€€fi€€€     fi€€€›  €€€fi€€›   €€€fi€€€ €€€ fi€›€€€ €€€ fi€›
  17. €€€› fi€€€› €€€€€€€€€fi€€€€€€›  €€€€€€€€  €€€€€€€€ fi€€ fi€€ €€€fi€€›fi€€ fi€€
  18.  flfl   flflfl   flflflflfl    flflflflflfl    flflflflfl      flflflfl   flfl      flfl  flfl      flflfl
  19.  
  20.  
  21.  
  22. AceComm (tm)
  23.  
  24. Macro Language
  25.  
  26.  
  27.  
  28. Copyright 1991-1994 by MGP Software, all rights reserved.
  29.  
  30. All rights reserved.  No part of this publication may be reproduced, stored in
  31. a retrieval system, or transmitted by any means, electronic, mechanical,
  32. photocopying, recording, or otherwise, without express written permission from
  33. MGP Software.  The software described in this publication is furnished under a
  34. license agreement and may be used or copied only in accordance with the terms
  35. of that agreement.
  36.  
  37. This publication and its associated software are sold without warranties,
  38. either expressed or implied, regarding their merchantability or fitness for any
  39. particular application or purpose.  The information in this publication is
  40. subject to change without notice and does not represent a commitment on the
  41. part of MGP Software.  In no event shall MGP Software be liable for any loss of
  42. profit or any other commercial damage, including but not limited to special,
  43. incidental, consequential, or other damages resulting from the use of or the
  44. inability to use this product, even if MGP Software has been notified of the
  45. possibility of such damages.
  46.  
  47.  
  48. First Printing, July 1994
  49.  
  50. AceComm version 1.90
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. All brand and product names mentioned in this publication are trademarks or
  63. registered trademarks of their respective holders.
  64.  
  65.  
  66.  
  67.  
  68. AceComm Software Support
  69.  
  70.  
  71.  
  72. You can get more help by contacting the
  73. author Michael Phelps at the following
  74.  
  75. - VOICE 602-846-4563 6 days 12-7pm MST
  76.  
  77. - BBS   602-846-2940 24 hours
  78.  
  79. - COMPUSERVE User ID 75120,3306
  80.  
  81. - FIDONET ADDRESS 1:114/35
  82.  
  83. - FIDONET COMM echo
  84.  
  85. - FIDONET ACECOMM echo
  86. I distribute the "ACECOMM" echo to
  87. USA NODES, until it makes BACKBONE.
  88.  
  89. - Write to: MGP Software (AceComm)                 *New Address*
  90.             BOX 301 C  Route 3                      Yes we are moving
  91.             Detroit Lakes, MN 56501 USA             later this year.
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.                 T a b l e   o f   C o n t e n t s
  101.  
  102.  
  103. Chapter 1  AceComm Macro Language..............................1
  104. Chapter 2  Macros list.........................................3
  105.               Local User Input (LUI) Functions.................4
  106.               Character I/O Functions..........................9
  107.               Flags...........................................20
  108.               File Functions..................................21
  109.               Data Transfer functions.........................24
  110.               Dialing/Fon.Record..............................27
  111.               Misc Functions..................................30
  112. Chapter 3  MACRO Parameter Symbols............................33
  113.               PRM-data Representatives........................34
  114.               Replaceable Macro Functions.....................40
  115. Chapter 4  Scripts............................................41
  116.               AutoScriptGen (Tm)..............................42
  117.               Labels, Gotos, Data Area........................47
  118.               Mini Host Script Example........................49
  119. Chapter 5  LICENSE............................................56
  120. Chapter 6  Contacting the author..............................59
  121.  
  122. Chapter 1  AceComm Macro Language
  123.  
  124.  
  125.  
  126. Almost all of AceComm's internal functions are represented with a macro
  127. programming language.  The AceComm keyboard is completely re-programmable using
  128. the macro language.  In fact, the AceComm keyboard is macro driven.
  129.  
  130. Many of AceComm's menus are also macro driven, and can be re-programmed.
  131. Some of the menus are user definable, where the title and menu items can be
  132. defined by the user.
  133.  
  134.  
  135. Reference to characters such as carriage return, space, escape, etc.  are made
  136. in this document.  Reference to a character is made in the following manner.
  137. <CR> <SP> where <CR> refers to a carriage return, and <SP> refers to a space
  138. character.  Macros are bounded by the same <> brackets as character reference.
  139. Character references are not macros.  A complete macro listing follows this
  140. chapter.
  141.  
  142.  
  143.  
  144. What is a Macro?
  145. ----------------
  146.  
  147. o Macros are directives bounded inside of angle brackets < >
  148.  
  149. o Macros must have a SPACE character in front of the '<' left bracket when
  150.     stacking.
  151.  
  152.  <ChgDir>[DIR_MAIL] <RunProg>OFFLINE <ChgDir>[DIR_START]
  153.                    |                 |
  154.                    |_________________|
  155.                    |
  156.                    Leading space
  157.  
  158. o Macros may be any combination of CaSe
  159.  
  160.  <RunProg> jmodem
  161.  <runprog> jmodem
  162.  
  163.  
  164. o The Macro Processor supports "Macro Stacking".  Macro Stacking means multiple
  165.   Macros per line
  166.  
  167.  <SendStr>u z ACE0601.ARJ^M <SendZmo>files\ace0601.arj
  168.  
  169.  <SendStr>u z ACE0601.ARJ^M <RunProg>DSZ sz -m files\ace0601.arj
  170.  
  171.  <SetDTR> ON <SendStr>ATDT846-2940^M <WaitStr>CONNECT <SendStr>^[^[
  172.  
  173.  
  174. o MACRO DATA PARAMETERS are bounded inside of square brackets [ ]
  175.  
  176. o MACRO DATA PARAMETERS need not have a <SP> character in front of them
  177.  
  178. o MACRO DATA PARAMETERS must be upper CASE
  179.  
  180.  <SendStr>[USER_NAME]^MY^M[FON_PWD]
  181.           |          |    |
  182.           |          |    Data Param (Fon.Record password field)
  183.           |          |
  184.  
  185.  
  186.        Page 1              AceComm (tm) v 1.90
  187.  
  188.  
  189.           |          ^M translates into a <CR> (carriage return)
  190.           |
  191.           Data Param (IEMSI user name field)
  192.  
  193.  <SendStr>[USER_NAME]^M~[PASSWORD]^M
  194.  |        |          | |  |
  195.  |        |          | |  IEMSI password field
  196.  |        |          | |
  197.  |        |          | One second delay (~ = second delay)
  198.  MACRO    |          |
  199.           |          Control character representation for <CR>
  200.           |
  201.           MACRO DATA PARAMETER (IEMSI data)
  202.  
  203.  
  204. o MACRO FUNCTION PARAMETERS are prefixed with a % character
  205.  
  206.  <SendZmo> %PF
  207.   |        |
  208.   |        MACRO FUNCTION PARAMETER (prompt for filename)
  209.   |
  210.   Internal Zmodem sending unit
  211.  
  212.  <RunProg>dsz port %P speed %B sz %PF %WK <SendStr>^M
  213.                       |        |     |   |
  214.                       |        |     |   |
  215.                       |        |     |   MACRO FUNCTION PARAM
  216.                       |        |     |   (wait for key press)
  217.                       |        |     |
  218.                       |        |     MACRO FUNCTION PARAM
  219.                       |        |     (prompt for filename)
  220.                       |        |
  221.                       |        MACRO FUNCTION PARAM
  222.                       |        (insert ascii baud)
  223.                       |
  224.                       MACRO FUNCTION PARAM
  225.                       (insert ascii port)
  226.  
  227.  
  228.  
  229. Please submit all macro suggestions to:
  230. a)  MSG to Michael Phelps on the AceComm Support BBS
  231. b)  MSG to Michael Phelps on Compuserve UID 75120,3306
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.        Page 2              Chapter 1  AceComm Macro Language
  252. Chapter 2  Macros list
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.        Page 3              AceComm (tm) v 1.90
  317.  
  318.  
  319. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  320.    Local User Input (LUI) Functions
  321. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  322.  
  323.  
  324.  
  325. LUI MACROS require local user input, and so are not suited to un-attended
  326. scripts.  LUI MACROS contain a '_' underscore as the last character inside the
  327. brackets.
  328.  
  329. <AutoAMenu_>
  330.  
  331.    Bring up a quick "Point Mail" / "Auto Answer" service menu. This for those
  332.    using the scheduler and automated host modes.
  333.  
  334.  
  335. <AutoScrGen_>
  336.  
  337.    Toggle AutoScrGen(tm) mode
  338.  
  339.    Toggle AutoScript Generation mode On/Off.  When "On" an extended status line
  340.    will appear at the bottom of the TERMINAL screen.  At the far left of the
  341.    extended status line will be the phrase "AutoScriptGen"
  342.  
  343.  
  344. <ScrollBack_>
  345.  
  346.    Menu Area
  347.    Enter Back Buffer Screen Area
  348.  
  349.    The "Scroll Back Buffer" contains the last n lines of display that scrolled
  350.    off the TERMINAL screen.  <ScrollBack_> has a status line of it's own.  The
  351.    status line contains such information as current line position into the
  352.    buffer, total lines buffered, and some of the navigational keys are
  353.    displayed.
  354.  
  355.  
  356. <CaptureFile_>
  357.  
  358.    Toggle Capture File
  359.    Prompts for filename
  360.  
  361.    Capture will also prompt for append or overwrite.  Capture does absolutely
  362.    NO filtering of any kind.  All data is recorded to file "as it comes in the
  363.    port".  The AceComm package comes with separate utilities which can strip
  364.    video control codes from files.
  365.  
  366.    See also <OpenCapture> filename
  367.             <CloseCapture>
  368.  
  369.  
  370. <DOSShell_>
  371.  
  372.    Enter Shell to Command Processor/ Operating System
  373.  
  374.    In most cases "Drop to DOS", if your DOS compatible operating system places
  375.    it's name in the environment where AceComm can find it.  "Shell" is not hard
  376.    wired to COMMAND.COM but the COMMAND PROCESSOR as found in the environmental
  377.    data area.
  378.  
  379.  
  380.  
  381.        Page 4              Chapter 2  Macros list
  382.  
  383.  
  384. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  385.    Local User Input (LUI) Functions (continued)
  386. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  387.  
  388.    Notes: When SWAP is "ON", the serial port is effectively disabled during the
  389.           shell.  When SWAP is "OFF" the serial port remains active and any
  390.           incoming data is handled properly, unless the receive buffer wraps
  391.           around.
  392.  
  393.  
  394. <FileReq_>
  395.    Menu driven EMSI file request function.
  396.  
  397.  
  398. <PhoneList_>
  399.  
  400.    Menu Area
  401.    Enter .FON List / Dialer
  402.  
  403.    Dial/.FON directory area.  While AceComm allows manual dialing from inside
  404.    the TERMINAL area, it most convenient to dial from a record contained in one
  405.    of the .FON files available for use from the DIAL area.
  406.  
  407.  
  408. <FileList_>
  409.  
  410.    Menu Area
  411.    Enter File Lister
  412.  
  413.    Files lister inside AceComm provides a basic directory list function capable
  414.    of changing directories and drives.  File-marking, deletion, selection for
  415.    appropriate file-utility, etc.  LISTFILES may be created.  UPLDS.LST is a
  416.    file created by the Tag feature inside the File Lister Area.  files tagged
  417.    will be listed inside UPLDS.LST as CR LF terminated strings.  When selecting
  418.    any of AceComm's internal batch capable sending protocols, AceComm will
  419.    check for the existent of the file UPLDS.LST and allow sending from the
  420.    LISTFILE if desired.
  421.  
  422.  
  423. <MdmHangUp_>
  424.  
  425.    Prompts Yes/no before,
  426.    Sends PRM-data MDM_HANGUP string to modem.  Waits 1/2 second, then drops DTR
  427.    for 1 second.
  428.  
  429. See also    <MdmHangUp> (no Yes/no prompt, good in scripts)
  430.  
  431.  
  432. <PrmData_>
  433.  
  434.    Menu Area
  435.    Enter PRM-data Menu Area (Configuration Area)
  436.  
  437.    Notes: When AutoSave is "ON", all data changed is automatically saved when
  438.           exiting the PRM-data area.
  439.  
  440.  
  441. <RProtocols_>
  442.  
  443.    Menu Area
  444.  
  445.  
  446.        Page 5              AceComm (tm) v 1.90
  447.  
  448.  
  449. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  450.    Local User Input (LUI) Functions (continued)
  451. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  452.  
  453.    Enter Receiver Protocols Area menu
  454.  
  455.  
  456. <RunScript_>
  457.  
  458.    List .SCR directory, Allow selection, Run selected .SCR file
  459.  
  460.    Lists the PRM-data .SCR directory Allows selection of a .SCR file for
  461.    immediate execution.
  462.  
  463.    Notes: AceComm allows .SCR file as an argument when started which
  464.           immediately executes the script.
  465.  
  466.  
  467. <ScrnDump_>
  468.  
  469.    Menu Area
  470.    Take Screen Snapshot
  471.  
  472.    Create a "SnapShot" of the current screen minus any status lines active.
  473.    Prompts for a filename.  Filenames always will have the .SNA extension.
  474.    AceComm can detect and will strip away filename extensions provided by the
  475.    user when they do not match that of the function.  This command is available
  476.    from most ALT POP UP REFERENCE areas.
  477.  
  478.  
  479. <ScrnTag_>
  480.  
  481.    Menu Area
  482.    Enter Screen Tagger Screen Area
  483.  
  484.    Tagger will allow tagging to the first SPACE_CHAR or press RIGHT-ARROW
  485.    Tagger tags the entire line of text.  Tagger has it's own status line, and a
  486.    block cursor will appear inside of the Tagger mode.  Tagged items will be
  487.    assigned to the next available SHIFT-Fn key.
  488.  
  489.    Tagger pops up the SHIFT-Fn key window and displays each tagged item, as
  490.    they are tagged.  Tagger is most handy for grabbing filenames for download
  491.    off a BBS screen.  SHIFT-Fn key fires the tagged item back when ready.  This
  492.    command is available from most ALT POP UP REFERENCE areas.
  493.  
  494.  
  495. <SProtocols_>
  496.  
  497.    Menu Area
  498.    Enter Sender Protocols Area
  499.  
  500.  
  501. <KeyRef_>
  502.  
  503.    Bring up Pop up Reference The key press assigned this macro is always
  504.    displayed on the right side of the status line.
  505.  
  506.  
  507. <TopBar>
  508.  
  509.  
  510.  
  511.        Page 6              Chapter 2  Macros list
  512.  
  513.  
  514. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  515.    Local User Input (LUI) Functions (continued)
  516. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  517.  
  518.    Activate the menu bar at top of screen
  519.  
  520.    The key press assigned this macro is always displayed on the right side of
  521.    the status line.
  522.    "Top Bar" menu can also be brought up inside the terminal area by double
  523.    clicking the left mouse button.
  524.  
  525. The following macros can be used to call individual menus otherwise choices
  526. from the TopBar single line menu
  527.  
  528.  
  529. <FileMenu>
  530.  
  531.    The TopBar File menu
  532.  
  533.  
  534. <HelpMenu>
  535.  
  536.    The TopBar Help menu
  537.  
  538.    The key press assigned this macro is always displayed on the right side of
  539.    the status line.
  540.  
  541.  
  542. <Users>
  543.  
  544.    The TopBar Users menu
  545.  
  546.    This is a menu that lists and allows menu selection for the User menus.
  547.    (User1 - User5)
  548.  
  549.  
  550. <PhoneMenu>
  551.  
  552.    Calls the <FonListDialer_> macro
  553.  
  554.  
  555. <SetupMenu>
  556.  
  557.    Calls the <PrmDataMenus_> macro
  558.  
  559.  
  560. <XfrMenu>
  561.  
  562.    The TopBar Transfer menu
  563.  
  564. <User>n
  565.  
  566. The following individual User menus can be brought up by themselves.
  567. Otherwise they are selectable from inside the <Users> menu.
  568. The macro takes a parameter 1 - 5
  569.  
  570. <User>1
  571.  
  572.    This macro brings up User menu # 1.
  573. ...
  574.  
  575.  
  576.        Page 7              AceComm (tm) v 1.90
  577.  
  578.  
  579. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  580.    Local User Input (LUI) Functions (continued)
  581. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  582.  
  583.  
  584. <User>5
  585.  
  586.    This macro brings up User menu # 5.
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.        Page 8              Chapter 2  Macros list
  642.  
  643.  
  644. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  645.    Character I/O Functions
  646. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  647.  
  648.  
  649.  
  650.   ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  651.   ≥ Many macros are3 way toggles. Where no parameter toggles.   ≥
  652.   ≥                                                             ≥
  653.   ≥       <AutoAnswer>ON     ; Enable                           ≥
  654.   ≥       <AutoAnswer>OFF    ; Disable                          ≥
  655.   ≥       <AutoAnswer>       ; Toggle                           ≥
  656.   ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  657.  
  658.  
  659. --------------------
  660. I/O Function Toggles
  661. --------------------
  662.  
  663. <AutoAnswer>
  664.  
  665.    <AutoAnswer>ON     ; Enable
  666.    <AutoAnswer>OFF    ; Disable
  667.    <AutoAnswer>       ; Toggle
  668.  
  669.    PRM-data MDM_HOST_INIT is sent to the modem when hostmode flag is toggle
  670.    "ON".  PRM-data MDM_INIT is sent to the modem when hostmode flag is toggled
  671.    "OFF".  AceComm begins responding to the RI bit SET, and will send the
  672.    MDM_ANSWER string to the modem when RI BIT becomes asserted.  Upon
  673.    Answer/Connect, AceComm attempts to match the modem response to strings
  674.    defined in the Auto Answer Setup menu.  The appropriate macro stack will
  675.    then be run.  AceComm stores the actual connect speed for use with the %C
  676.    macro parameter.  %B represents the port rate, %C represents the connect
  677.    speed as reported by the modem.
  678.  
  679.    If you are using <AutoAnswer> alone, without any host script or host
  680.    software, then be sure and also use <HostEcho>ON.  If you want to act as a
  681.    host with characters being bounced back to the caller.
  682.  
  683.    Notes: Auto Answer is also terminated whenever the user dials out from the
  684.           FON LIST MENU AREA.  If automated auto answer is being used by way of
  685.           the scheduler, then auto answer mode will be re-entered as soon as
  686.           AceComm detects carrier drop.
  687.  
  688.    See also   Auto Answer Setup menu
  689.  
  690.  
  691. <DoorWayMode>
  692.  
  693.    <DoorWayMode>ON     ; Enable
  694.    <DoorWayMode>OFF    ; Disable
  695.    <DoorWayMode>       ; Toggle
  696.  
  697.    Toggle doorway mode.  Traps the key press on entry, whatever key press you
  698.    assign <DoorWayMode> to, is the only way back out.  Doorway sends all key
  699.    presses to the modem in their RAW 'un-cooked' form.  Non extended key
  700.    presses are send LOW BYTE ONLY.  Extended key presses are sent LOW BYTE,
  701.    HIGH BYTE.
  702.  
  703.    Notes: Pressing CONTROL BREAK will always end AceComm.  CONTROL BREAK is a
  704.  
  705.  
  706.        Page 9              AceComm (tm) v 1.90
  707.  
  708.  
  709. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  710.    Character I/O Functions (continued)
  711. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  712.  
  713.          back door to the <EndAceComm> macro.  When you exit the program by
  714.          pressing CONTROL BREAK, all data is saved as usual, and program
  715.          cleanup is as it would be using the <EndAceComm> macro.
  716.  
  717.  
  718. <HostEcho>
  719.  
  720.    <HostEcho>ON     ; Enable
  721.    <HostEcho>OFF    ; Disable
  722.    <HostEcho>       ; Toggle
  723.  
  724.    Toggle Host echo mode.  This macro emulates HostMode's ECHO capability.  It
  725.    does not answer the phone. Use <AutoAnswer>On to have AceComm answer.
  726.  
  727.    Host echo means that characters typed locally will be displayed both local
  728.    and sent to the modem.
  729.  
  730.    Host echo will also translate <CR> into <CR><LF> pairs and <BS> into
  731.    <BS><SP><BS>.
  732.  
  733.  
  734. <LocalEcho>
  735.  
  736.    <LocalEcho>ON     ; Enable
  737.    <LocalEcho>OFF    ; Disable
  738.    <LocalEcho>       ; Toggle
  739.  
  740.    Toggle local character echo.  Local key-presses will be echoed to the
  741.    screen.  (same effect as sending "ATE1^M" to the modem)
  742.    If you use <LocalEcho> be sure your modem is set up with echo off.
  743.    To turn the modem echo off   ATE0
  744.  
  745.  
  746. -------------------------------------
  747. I/O Flags Toggles internal to AceComm
  748. -------------------------------------
  749.  
  750. <BitStrip>
  751.  
  752.    <BitStrip> on
  753.    <BitStrip> off
  754.    <BitStrip>
  755.  
  756.    AceComm going to strip high bit from ascii characters (above 127d)
  757.  
  758.  
  759. <CTS>
  760.  
  761.    <CTS> on
  762.    <CTS> off
  763.    <CTS>
  764.  
  765.    AceComm uses CTS/RTS hardware handshaking.
  766.  
  767.  
  768. <XON>
  769.  
  770.  
  771.        Page 10              Chapter 2  Macros list
  772.  
  773.  
  774. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  775.    Character I/O Functions (continued)
  776. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  777.  
  778.  
  779.    <XON> on
  780.    <XON> off
  781.    <XON>
  782.  
  783.    AceComm uses XON/XOFF software handshaking
  784.  
  785. ----------
  786. I/O Modem
  787. ----------
  788.  
  789.  
  790. <GetDCD>
  791.  
  792.    Returns 0 or 1 current carrier detect signal
  793. :DIAL
  794.    ...
  795.    <GetDCD>
  796.    <if>1 <goto>CONNECT
  797.          <goto>DIAL
  798.    ...
  799. :CONNECT
  800.  
  801.  
  802. <MdmHangUp>
  803.  
  804.    Sends PRM-data MDM_HANGUP string to modem.  Waits 1/2 second, then drops DTR
  805.    for 1 second.
  806.  
  807.  
  808. <MdmStill>
  809.  
  810.    <MdmStill>n
  811.  
  812.    Wait for n seconds where nothing arrives from the modem.
  813.  
  814.    <SendStr>d^M ACE185.ZIP^M
  815.    <RecvZmo>
  816.    <MdmStill>5 <SendStr>G^M Y^M <Delay>2 <MdmHangUp>
  817.  
  818.  
  819. <SetDTR>
  820.  
  821.    <SetDTR> on
  822.    <SetDTR> off
  823.  
  824.    Assert or Reset UART Bit for data terminal ready
  825.  
  826.  
  827. <SetLCtrl>STRING
  828.  
  829.    <SetLCtrl>8N1
  830.    <SetLCtrl>7E1
  831.    <SetLCtrl>7N1
  832.  
  833.  
  834.  
  835.  
  836.        Page 11              AceComm (tm) v 1.90
  837.  
  838.  
  839. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  840.    Character I/O Functions (continued)
  841. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  842.  
  843. <SetBaud>STRING
  844.  
  845.    <SetBaud>300
  846.    <SetBaud>1200
  847.    <SetBaud>2400
  848.    <SetBaud>4800
  849.    <SetBaud>9600
  850.    <SetBaud>19200
  851.    <SetBaud>38400
  852.    <SetBaud>57600
  853.    <SetBaud>115200
  854.  
  855.  
  856. -----------------------
  857. I/O Mostly Scripts Uses
  858. -----------------------
  859.  
  860. The sample MINIHOST.SCR included with the AceComm package demonstrates most of
  861. the macros in this manual. Remember that macros ending in _> require local
  862. keyboard input, so are not suited to un-attended scripts.
  863.           Example:
  864.                   <MdmHangUp_>  will prompt the user (Yes/no)
  865.              where
  866.                   <MdmHangUp>  hangs up with no (Yes/no) prompt
  867.  
  868.  
  869.  
  870.  
  871. <CheckMdm>STRING
  872.  
  873.    This macro checks to see if STRING has come in from the modem.
  874.    The macro does not wait, but sets the result for a following <if>
  875.    to 1 or 0.
  876.    Result to <if> is 1 or 0
  877.  
  878. --- Example ---
  879. ;
  880. ; Clear screen,  Send ansi video request,  Display banner
  881. ;
  882.    <Timer0>3                        ; Init Timer0 and set 3 second timeout
  883.    <RawCapture>On                   ; Allow all caller's input in wait buffer
  884.                                     ; ESC[6n  is video request (detect ansi)
  885.    <SendStr>^L^[[6n^MMini Host Script for AceComm v1.85^M
  886. ;
  887. ; Loop here for 3 second maximum waiting for answer to Ansi detect sequence
  888. ;
  889. :@@DetectAnsi
  890.    <CheckMdm> [ <if>1 <goto>@@AnsiDetected     ; Remote will answer with
  891.    <Timer0> <if>1 <goto>@@DetectAnsi           ; ESC[n;nR  if ANSI capable
  892.    <RawCapture>Off
  893.    <HostEcho>ON                                ; HostEcho translates CR
  894.                                                ; into CR,LF pair
  895.    <DispStr>^MAnsi video request un-answered^M ; Ansi video request
  896.    <goto>@@Welcome
  897. :@@AnsiDetected
  898.    <RawCapture>Off
  899.  
  900.  
  901.        Page 12              Chapter 2  Macros list
  902.  
  903.  
  904. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  905.    Character I/O Functions (continued)
  906. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  907.  
  908.    <HostEcho>ON                     ; HostEcho translated CR into CR,LF pair
  909.    <SendStr> ^MAnsi video detected!^M
  910.  
  911. --- End Example ---
  912.  
  913.  
  914. <DirList> PATH\*.*
  915.  
  916.    List a directory, can be used from host mode.
  917.  
  918.    <DirList>[DIR_DNLDS]\*.*
  919.    <DirList>C:\files\*.ZIP
  920.  
  921. <DispStr>TEXT
  922.  
  923.  
  924.    <DispStr>^M[BWhi][Blu]Hello to you![AttrOff]^M^J
  925.  
  926.  
  927. <DispText> LABEL_NAME
  928.  
  929.    Display text defined in a data area of a script file LABEL_NAME is
  930.    descriptive text following {-TEXT_START-} Text is displayed at current
  931.    cursor position Text display is local
  932.  
  933. --- Example ---
  934.  
  935. :@@Top
  936.    <ClrWin>
  937.    <DispText>Intro
  938.    <DispText>Ask_Continue
  939. :GetKey
  940.    <GetKey>60
  941.       <if>Y <goto>Dial
  942.       <if>N <goto>End
  943.       <goto>GetKey
  944. :Dial
  945.    <INITFONREC>ACECOMM Support BBS      ; Initialize a FON RECORD
  946.    <FON_NUM>1-602-846-2940            ;
  947.    <FON_BAUD>19200                    ;
  948.    <FON_TERM>Av/An                    ;
  949.    <FON_REDIAL>                       ; Go into re dial mode
  950.    <DispText>Connect
  951.    <WAITSTR> your name:
  952.    <GetDCD>                           ; <WaitStr> may have timed
  953.    <if>1 <goto>Connect                ; out
  954.    <goto>@@Top
  955. :Connect
  956.    <SENDSTR>Michael Phelps^M
  957.    <SENDSTR>Y^M
  958.    <SENDSTR>password^M
  959.    <WAITSTR>Select:
  960.    <SENDSTR>ff
  961. :End
  962.    <ENDS>
  963.  
  964.  
  965.  
  966.        Page 13              AceComm (tm) v 1.90
  967.  
  968.  
  969. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  970.    Character I/O Functions (continued)
  971. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  972.  
  973. {-DATA_AREA-}
  974. {-TEXT_START-}Intro
  975. -- Generic Log On Script --
  976. {-TEXT_END-}
  977. {-TEXT_START-}Ask_Continue
  978. Continue (Y/n) {-TEXT_END-}
  979.  
  980. {-TEXT_START-}Connect
  981. -- Connect --
  982. {-TEXT_END-}
  983.  
  984. --- End Example ---
  985.  
  986.  
  987. <EndS>
  988.  
  989.    Marks the exit point for the script processor.
  990.  
  991.  
  992. <FindUser>
  993.  
  994.    Searches a file names USERLIST.LST for user names.
  995.    Result to <if> is 1 or 0
  996.  
  997.    Sample USERLIST.LST file contents:
  998.  
  999. Michael Phelps,password,9
  1000. Guest Pass,guest,1
  1001.  
  1002. The user name must be First Last,password,level
  1003. Level is not currently supported, but must be there. The commas are important.
  1004.  
  1005.  
  1006. --- Example ---
  1007.    <DispStr> ^MEnter your first and last name:
  1008.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  1009.    <DispStr> ^MEnter your first and last name:
  1010.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  1011.    <DispStr> ^MEnter your first and last name:
  1012.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  1013. :@@1
  1014.    <DispStr>^L^MYour name has not been registered in the user file, you may
  1015.    <DispStr>^Moptionaly leave a short not for the SysOp, pleas include your
  1016.    <DispStr>^Mfirst and last name along with a password.
  1017.    <DispStr>^M^MWould you like to leave a note? (Y)es/(N)o
  1018.    <GetKey>
  1019.    <if>Y <goto>@@LogOffComment
  1020.    <if>N <goto>@@OFF
  1021.    <Goto>@@1
  1022. --- End Example ---
  1023.  
  1024.  
  1025. <GetKey>n
  1026.  
  1027.    <GetKey>60
  1028.    The macro excepts a parameter. Seconds to wait for a key press. The
  1029.  
  1030.  
  1031.        Page 14              Chapter 2  Macros list
  1032.  
  1033.  
  1034. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1035.    Character I/O Functions (continued)
  1036. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1037.  
  1038.    parameter range if 1 second - (60 * 7) seconds
  1039.  
  1040.    :@@Top
  1041.          <DispText>Main_Menu
  1042.    :@@GetKey
  1043.         <GetKey>10
  1044.                   <If>L <goto>@@List
  1045.                   <If>M <Goto>@@Main
  1046.                   <If>^M <Goto>@@Top
  1047.         <GetDCD> <If>0 <goto>@@UseDroppedCarrier
  1048.         <Goto>@@GetKey
  1049.  
  1050.    When a key press is checked with the <if> macro, it is first made upper
  1051.    case. Control characters can be trapped by representing it as ^[character].
  1052.  
  1053.    To see if the user pressed the ENTER key   <if>^M
  1054.                                     ESC key   <if>^[
  1055.  
  1056.    <if> will also check for extended key presses that might be made locally.
  1057.    This needs <LocalKeys>ON.
  1058.    <If>ALT+J <Goto>@@JumpToDOS
  1059.    <If>CTRL+J <Goto>@@JumpToDOS
  1060.    <If>F11 <Goto>@@JumpToDOS
  1061.    <If>SF11 <Goto>@@JumpToDOS
  1062.    <If>CF11 <Goto>@@JumpToDOS
  1063.    <If>AF11 <Goto>@@JumpToDOS
  1064.  
  1065.  
  1066. <GetMsg>
  1067.  
  1068.    This macro will create a message.  It needs host echo on.  The macro inputs
  1069.    for From:, To:, Subject: fields.  When called after <FindUser> the From:
  1070.    field is initialized with the user's name.  The macro write a message header
  1071.    to the beginning of the message file.  The message text is taken from the
  1072.    screen after the user saves the message with CONTROL Z.  Message filenames
  1073.    are created as 1.MSG, 2.MSG, 3.MSG etc.  The macro is designed for a small
  1074.    number of messages.  It will create the first filename that does not exist.
  1075.  
  1076.    See <ReadMsg>  and  <YourMsg> macros.
  1077.  
  1078.  
  1079. <GetStr>n
  1080.  
  1081.    <GetStr>36
  1082.    Parameter n is the maximum characters to allow entered. Range is 1 - 128.
  1083.    The macro is used for the <FindUser>, <UserPwd>, and %FN.
  1084.    %FN maximum length is 80 characters.
  1085.    %FN always represents the string entered with <GetStr>.
  1086.  
  1087.        <DispStr> ^M^JEnter your first and last name:
  1088.        <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  1089.        <DispStr>^M^J^G%FN not found in user list!
  1090.        <Goto>@@DumpCaller
  1091.    :@@GetPwd
  1092.  
  1093.  
  1094.  
  1095.  
  1096.        Page 15              AceComm (tm) v 1.90
  1097.  
  1098.  
  1099. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1100.    Character I/O Functions (continued)
  1101. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1102.  
  1103. <GoTo>
  1104.  
  1105.    Can be used alone or after an <If> macro.
  1106.    Parameter to <GoTo> is a label. Labels begin with a :.
  1107.    Labels need to be unique character strings.
  1108.  
  1109.    <GoTo>@@Done
  1110.  
  1111.    <GetDCD> <if>1 <Goto>@@Carrier
  1112.                   <Goto>@@OffLine
  1113.  
  1114.    <CheckMdm>password: <if>1 <Goto>@@SendPwd
  1115.  
  1116.  
  1117. <If>
  1118.    Can only be used after macros that produce a result.
  1119.  
  1120.  
  1121.       <GetDCD>   <if>1 <Goto>@@DCD
  1122.       <CheckMdm> <If>0 <Goto>@@WaitStr
  1123.       <Timer0>   <If>1 <Goto>@@WaitStr
  1124.       <Timer1>   <If>0 <Goto>@@Timeout
  1125.       <FindUser> <If>0 <Goto>@@DumpCaller
  1126.       <UserPwd>  <If>0 <Goto>@@LetCallerLeaveMsg
  1127.       <GetKey>   <If>^M <Goto>@@UserEnter
  1128.  
  1129. <LocalKeys>
  1130.  
  1131. <LocalKeys> on
  1132. <LocalKeys> off
  1133. <LocalKeys>
  1134.  
  1135.    3 way macro
  1136.    Enable/disable local LUI key press during script (host mode)
  1137.  
  1138.  
  1139. <NCWaitStr> STRING
  1140.  
  1141.    Non CaSe sensitive version of <WaitStr>
  1142.  
  1143.    Waits for a string (sequence of characters) to come in the
  1144.    from the modem.  Can Timeout. If <WaitStr> times out, it falls through.
  1145.  
  1146.    Timeout seconds is set with <WaitTime>n
  1147.  
  1148.           <WaitStr> name:
  1149.                    |
  1150.                    leading <SP> character is part of search
  1151.  
  1152.  
  1153. <ReadMsg>
  1154.  
  1155.    This macro displays the messages found. A key press is prompted between
  1156.    each message.
  1157.  
  1158.  
  1159. <SendStr> STRING
  1160.  
  1161.  
  1162.        Page 16              Chapter 2  Macros list
  1163.  
  1164.  
  1165. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1166.    Character I/O Functions (continued)
  1167. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1168.  
  1169.  
  1170.    Sends a string to the modem.
  1171.  
  1172.        <SendStr>^M
  1173.  
  1174.        Send a single CR_CHAR
  1175.  
  1176.  
  1177.        <SendStr> Michael Phelps^M
  1178.  
  1179.        Notes: the leading space character is part of STRING
  1180.  
  1181.  
  1182.       <SendStr>[USER_NAME]^M~Y^M~[FON_PWD]
  1183.  
  1184.        Send IEMSI data user name field, a <CR> char, 1 second pause, Y, <CR>
  1185.        char, 1 second pause, current Fon.Record.Password.
  1186.  
  1187.  
  1188.       <SendStr>[USER_NAME]^M^M[PASSWORD]^M
  1189.  
  1190.        Send IEMSI data user name field, 2 <CR> chars, IEMSI data password
  1191.        field.
  1192.  
  1193.  
  1194. <Timer0>
  1195. <Timer1>
  1196.  
  1197.    Two separate timers
  1198.    A parameter to the <Timer0> macro sets the timeout time in seconds
  1199.    Result to <if> is 1 or 0
  1200.  
  1201.    <Timer0>30  Sets a timeout of 30 seconds for Timer 0
  1202.  
  1203.    <Timer0>    Sets the result for an <if> to 1 or 0.   0 if the timer has
  1204.                expired,
  1205.    <Timer1> works the same way.
  1206.  
  1207.  
  1208. <UserPwd>
  1209.  
  1210.    This macro can only be called immediately after the <FindUser> macro.
  1211.    This macro will verify the password. Success or failure is determined with
  1212.    the immediate call to <if> macro. (see below)
  1213.    Result to <if> is 1 or 0
  1214.  
  1215. --- Example ---
  1216.    <DispStr> ^MEnter password:
  1217.    <GetStr>26 <UserPwd> <if>1 <goto>@@MainMenu
  1218.    <DispStr> ^MEnter password:
  1219.    <GetStr>26 <UserPwd> <if>1 <goto>@@MainMenu
  1220.    <DispStr> ^MEnter password:
  1221.    <GetStr>26 <UserPwd> <if>0 <goto>@@OFF
  1222.                               <goto>@@MainMenu
  1223. --- End Example ---
  1224.  
  1225.  
  1226.  
  1227.        Page 17              AceComm (tm) v 1.90
  1228.  
  1229.  
  1230. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1231.    Character I/O Functions (continued)
  1232. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1233.  
  1234.  
  1235. <Var0>
  1236. <Var1>
  1237.  
  1238.    Variables that can store a result.
  1239.  
  1240. --- Example ---
  1241. ;
  1242. ; Clear screen,  Send ansi video request,  Display banner
  1243. ;
  1244.    <Var0>0                          ; See if we can set this to 1 with
  1245.                                     ; our ansi video detection scheme.
  1246.    <Timer0>3                        ; Init Timer0 and set 3 second timeout
  1247.    <RawCapture>On                   ; Allow all caller's input in wait buffer
  1248.                                     ; ESC[6n  is video request (detect ansi)
  1249.    <SendStr>^L^[[6n^MMini Host Script for AceComm v1.85^M
  1250. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1251. ;
  1252. ; Loop here for 3 second maximum waiting for answer to Ansi detect sequence
  1253. ;
  1254. :@@DetectAnsi
  1255.    <CheckMdm> [ <if>1 <goto>@@AnsiDetected     ; Remote will answer with
  1256.    <Timer0> <if>1 <goto>@@DetectAnsi           ; ESC[n;nR  if ANSI capable
  1257.    <RawCapture>Off
  1258.    <HostEcho>ON                                ; HostEcho translates CR
  1259.                                                ; into CR,LF pair
  1260.    <DispStr>^M^JAnsi video request un-answered ; Ansi video request
  1261.    <goto>@@Welcome
  1262. :@@AnsiDetected
  1263.    <Var0>1
  1264.    <RawCapture>Off
  1265.    <HostEcho>ON                     ; HostEcho translated CR into CR,LF pair
  1266.    <SendStr> ^M^JAnsi video detected!
  1267.  
  1268. :@@Welcome
  1269.    ;
  1270.    ; %C is the connect speed
  1271.    ;
  1272.    <Var0> <if>1 <DispStr>^M^J[Whi]Connected at [Blink][Bold][Red]%C[AttrOff]
  1273.    <Var0> <if>0 <DispStr>^M^JConnected at  %C
  1274.  
  1275. --- End Example ---
  1276.  
  1277.  
  1278. <WaitStr> STRING
  1279.  
  1280.    Waits for a CASE sensitive string (sequence of characters) to come in the
  1281.    from the modem.  Can Timeout. If <WaitStr> times out, it falls through.
  1282.  
  1283.    Timeout seconds is set with <WaitTime>n
  1284.  
  1285.           <WaitStr> name:
  1286.                    |
  1287.                    leading <SP> character is part of search
  1288.  
  1289.  
  1290.  
  1291.  
  1292.        Page 18              Chapter 2  Macros list
  1293.  
  1294.  
  1295. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1296.    Character I/O Functions (continued)
  1297. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1298.  
  1299. <WaitTime> n
  1300.  
  1301.    Where n is in seconds Set the timeout value for <WaitStr> (default is 40
  1302.    seconds)
  1303.  
  1304.       <Timer0>10
  1305.       <WaitTime>15
  1306.       <WaitStr>name?
  1307.       <Timer0> <if>0 <goto>@@Timeout
  1308.       <SendStr>[USER_NAME]^M
  1309.    :@@TimeOut
  1310.  
  1311.  
  1312. <YourMsg>
  1313.  
  1314.    This macro is the same as <ReadMsg>, except that the To: field in the
  1315.    message header must match the caller's name.
  1316.    You can use this macro to display personal messages to the callers.
  1317.    Messages must be created with <GetMsg>.
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.        Page 19              AceComm (tm) v 1.90
  1358.  
  1359.  
  1360. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1361.    Flags
  1362. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1363.  
  1364.  
  1365.  
  1366. ------------------------
  1367. Internal Protocols Flags
  1368. ------------------------
  1369.  
  1370. <AutoD> on/off
  1371.  
  1372.    Enable/disable auto engage sequence scanning for protocols
  1373.  
  1374.    Does not affect auto log on
  1375.  
  1376.  
  1377. <Resume> on/off
  1378.  
  1379.    Enable/disable file resume (internal zmodem receive)
  1380.  
  1381.  
  1382. <Rename> on/off
  1383.  
  1384.    Enable/disable file rename (internal zmodem receive)
  1385.  
  1386.  
  1387. -------------
  1388. General Flags
  1389. -------------
  1390.  
  1391. <SwapSpawn> on/off
  1392.  
  1393.    3 way toggle
  1394.    Enable/disable swap to EMS/XMS/DISK for <RunProg> macro
  1395.  
  1396.  
  1397. <SwapShell> on/off
  1398.  
  1399.    3 way toggle
  1400.    Enable/disable swap to EMS/XMS/DISK for <CommandShell_> macro
  1401.  
  1402.  
  1403. <DTRExit> on/off
  1404.  
  1405.    3 way toggle
  1406.    DTR state for <EndAceComm> macro
  1407.  
  1408.  
  1409. <Scheds> on/off
  1410.  
  1411.    <Scheds>ON     ; Enable
  1412.    <Scheds>OFF    ; Disable
  1413.    <Scheds>       ; Toggle
  1414.  
  1415.    3 way toggle
  1416.    This macro will simply turn the schedules on or off.
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.        Page 20              Chapter 2  Macros list
  1423.  
  1424.  
  1425. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1426.    File Functions
  1427. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1428.  
  1429.  
  1430.  
  1431.  
  1432. <ChgDir> FILENAME
  1433.  
  1434.    Make FILENAME current directory
  1435.    This macro can change drives
  1436.  
  1437.    <ChgDir>C:\WORK\TXT <ToPrn>melissa.01 <ChgDir>[DIR_START]
  1438.  
  1439.    <ChgDir>[FIR_DNLDS] <RunProg>DSZ port %P speed %B rz -mr <ChgDir>[DIR_START]
  1440.  
  1441.    Notes: [DIR_START] is the directory Acecomm is started in.
  1442.           [DIR_DNLDS] is the directory pointed to inside PRM-data
  1443.           "Directories" menu for "Downloads".
  1444.  
  1445.  
  1446. <CloseCapture>
  1447.  
  1448.    Close the current open capture file, or just returns if none is open.
  1449.  
  1450.    Capture files are stamped with date/time when closed.
  1451.  
  1452.    Capture files are automatically closed on detection of a loss in carrier.
  1453.  
  1454.    Capture files are automatically closed when the <OpenCapture> macro is
  1455.    called, so that any previous open capture file is sure to be closed before
  1456.    opening the new one.
  1457.  
  1458.  
  1459. <FileDel> FILENAME
  1460.  
  1461.    If the file exists, it will be deleted without prompt.  Use full path name
  1462.    if not in current directory.
  1463.  
  1464.  
  1465.  
  1466. <LogFile> text
  1467.  
  1468.    Adds "text" to ACE.LOG
  1469.  
  1470.  
  1471. <OpenCapture> FILENAME
  1472.  
  1473.    Calling this function opens a capture file in the directory path defined
  1474.    inside PRM-data Area "Directories" menu, .CAP files.
  1475.  
  1476.    Existing capture files of same FILENAME are appended to.  DOS eof character
  1477.    may end up just ahead of the time stamp.
  1478.  
  1479.    This function will first close any previously opened capture file, properly
  1480.    saving it to disk.
  1481.  
  1482.    Capture files are stamped with date/time when opened.
  1483.  
  1484.    Capture files can record either in "Raw" or "Text" mode. "Raw" mode being
  1485.  
  1486.  
  1487.        Page 21              AceComm (tm) v 1.90
  1488.  
  1489.  
  1490. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1491.    File Functions (continued)
  1492. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1493.  
  1494.    where no video control characters are filtered. "Text" being everything
  1495.    that the current video emulation does not pick out.
  1496.  
  1497.    See also <RawCapture> macro
  1498.  
  1499.  
  1500. <RawCapture>on/off
  1501.  
  1502.    <RawCapture>on
  1503.    <RawCapture>off
  1504.    <RawCapture>
  1505.  
  1506.    3 way toggle
  1507.    <rawCapture>ON <OpenCapture>xmas.ans
  1508.  
  1509.    Captured data will be stored with or without video control characters.  The
  1510.    current video emulation must mach that of the host.
  1511.  
  1512.    AN/AV covers both Ansi and Avatar video at the same time ans is the AceComm
  1513.    default video type.
  1514.  
  1515.  
  1516. <RunScript> FILENAME
  1517.  
  1518.    Open and run FILENAME
  1519.  
  1520.    Notes: Just FILENAME no PATH.  PATH found in PRM-data for SCR directory is
  1521.           used.
  1522.           Note the difference between <RunScript> and <RunScript_>, where
  1523.           the later does filename prompting.
  1524.  
  1525.  
  1526. <RunProg> FILENAME
  1527.  
  1528.    Spawn an executable file.
  1529.  
  1530.    Can search the DOS PATH.
  1531.  
  1532.    Can determine files's extension (.COM, .EXE).
  1533.  
  1534.    All system ISRS are restored before the spawn takes place.  The serial port
  1535.    is un-hooked.  The state of DCD, and LINE CONTROL are left in tact.
  1536.  
  1537.    After the spawn the system ISRs AceComm uses are taken back, the serial port
  1538.    is re-assumed.
  1539.  
  1540.    SWAP FLAG "ON" and XMS,EMS, or DISK swapping takes place.  SWAP FLAG "OFF"
  1541.    and AceComm is left in memory, with exception to first restoring the serial
  1542.    port and interrupts.
  1543.  
  1544.  
  1545. <SetFonFile> FILENAME
  1546.  
  1547.    Tacks FILENAME onto the PATH defined in PRM DATA for .FON files.  AceComm
  1548.    keeps track of the current(last accessed) .FON file.  FILENAME becomes the
  1549.    current .FON file.  <SetFonFile> 1_114.fon <DialRecord> 1
  1550.  
  1551.  
  1552.        Page 22              Chapter 2  Macros list
  1553.  
  1554.  
  1555. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1556.    File Functions (continued)
  1557. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1558.  
  1559.  
  1560.  
  1561. <ToPrn> FILENAME
  1562.  
  1563.    Send FILENAME to the printer.
  1564.  
  1565.    Notes: This macro opens the filename PRN using DOS file handle function, and
  1566.           writes the file.  Any character translation DOS may do will depend
  1567.           upon the IOCTL functions of DOS.  (eof etc.)
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.        Page 23              AceComm (tm) v 1.90
  1618.  
  1619.  
  1620. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1621.    Data Transfer functions
  1622. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1623.  
  1624.  
  1625.  
  1626.  
  1627. Internal receiver protocols will receive to the sub directory for Downloads as
  1628. setup inside the PRM-data "Directories" menu.
  1629.  
  1630.  
  1631. <SendAscii> FILENAME
  1632.  
  1633.    Outputs from a file to the modem.  Sends the complete file.  Does *NO*
  1634.    CONTROL CHARACTER TRANSLATION.  Data sent to the modem is paced for buffer
  1635.    FULL, and all handshaking is valid.
  1636.  
  1637.    ESC-key press aborts the function.
  1638.  
  1639.  
  1640. <SendZmo@> @FILENAME
  1641.  
  1642.    Where @FILENAME is a LISTFILE
  1643.    The @ denotes a LISTFILE
  1644.    Filenames contained in the listfile should be full drive path filenames,
  1645.    if not all contained in the current working directory.
  1646.  
  1647.    Call internal zmodem sending unit with 1k data frame size.
  1648.    ESC-key press aborts the function.
  1649.  
  1650.  
  1651. <SendZmo> FILENAME
  1652.  
  1653.    Call internal zmodem sending unit with 1k data frame size.
  1654.    ESC-key press aborts the function.
  1655.  
  1656.  
  1657. <SendYmo> FILENAME
  1658.  
  1659.    Call internal ymodem sending unit with 128 byte data frame size.
  1660.    ESC-key press aborts the function.
  1661.  
  1662.  
  1663. <SendYmo1k> FILENAME
  1664.  
  1665.    Call internal ymodem sending unit with 1k data frame size.
  1666.    ESC-key press aborts the function.
  1667.  
  1668.  
  1669. <SendYmoG> FILENAME
  1670.  
  1671.    Call internal ymodemG sending unit with 1k data frame size.
  1672.    ESC-key press aborts the function.
  1673.  
  1674.  
  1675. <SendXmo> FILENAME
  1676.  
  1677.    Call internal xmodem sending unit with 128 byte data frame size.
  1678.    ESC-key press aborts the function.
  1679.  
  1680.  
  1681.  
  1682.        Page 24              Chapter 2  Macros list
  1683.  
  1684.  
  1685. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1686.    Data Transfer functions (continued)
  1687. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1688.  
  1689.  
  1690. <SendXmo1k> FILENAME
  1691.  
  1692.    Call internal xmodem sending unit with 1k data frame size.
  1693.    ESC-key press aborts the function.
  1694.  
  1695.  
  1696. <RecvAscii> FILENAME
  1697.  
  1698.    Ascii receiver will close the file when End Of File "eof" character is
  1699.    seen.  Eof character is set from inside "Protocol Options" menu.  The
  1700.    default eof character is the DOS standard 26d.
  1701.    ESC-key press aborts the function.
  1702.  
  1703.  
  1704. <RecvZmo>
  1705.  
  1706.    Call internal zmodem recv unit.  AceComm's internal zmodem receiver is
  1707.    capable of up to 8k data frame size.  The receive unit will continue in
  1708.    batch mode until the sender stops sending files, or the user terminates the
  1709.    transfer.  Files are placed into the directory pointed to in the PRM-data
  1710.    area for Downloads.
  1711.    ESC-key press aborts the function.
  1712.  
  1713.  
  1714. <RecvYmo>
  1715.  
  1716.    Call internal ymodem.  The receive unit will continue in batch mode until
  1717.    the sender stops sending files, or the user terminates the transfer.  Files
  1718.    are placed into the directory pointed to in the PRM-data area for Downloads.
  1719.    ESC-key press aborts the function.
  1720.  
  1721.  
  1722. <RecvYmo1K>
  1723.  
  1724.    Call internal ymodem1K.  The receive unit will continue in batch mode until
  1725.    the sender stops sending files, or the user terminates the transfer.  Files
  1726.    are placed into the directory pointed to in the PRM-data area for Downloads.
  1727.    ESC-key press aborts the function.
  1728.  
  1729.  
  1730. <RecvYmoG>
  1731.  
  1732.    Call internal ymodemG.  The receive unit will continue in batch mode until
  1733.    the sender stops sending files, or the user terminates the transfer.  Files
  1734.    are placed into the directory pointed to in the PRM-data area for Downloads.
  1735.    ESC-key press aborts the function.
  1736.  
  1737.  
  1738. <RecvXmo> FILENAME
  1739.  
  1740.    Call internal xmodem.  Files are placed into the directory pointed to in the
  1741.    PRM-data area for Downloads.
  1742.    ESC-key press aborts the function.
  1743.  
  1744.  
  1745.  
  1746.  
  1747.        Page 25              AceComm (tm) v 1.90
  1748.  
  1749.  
  1750. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1751.    Data Transfer functions (continued)
  1752. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1753.  
  1754. <RecvXmo1K> FILENAME
  1755.  
  1756.    Call internal xmodem1k.  Files are placed into the directory pointed to in
  1757.    the PRM-data area for Downloads.
  1758.    ESC-key press aborts the function.
  1759.  
  1760.  
  1761. <SendEMSI_CLI>
  1762.  
  1763.    Send an EMSI_CLI HDR sequence to modem
  1764.  
  1765.    BBS mailer front ends that use EMSI handshake protocol will, if EMSI is
  1766.    implemented properly, interpret an "EMSI_CLI" HDR sequence, as "this is a
  1767.    human caller" and drop to the BBS without any delay.  Note: At this writing
  1768.    Front Door, and Binkley recognize EMSI_CLI HDR.  DBridge does not.  See
  1769.    default AutoD trigger assignments (ACE.CTL)
  1770.  
  1771.  
  1772. <SendEMSI_ICI>
  1773.  
  1774.    IEMSI support macro
  1775.    Send an EMSI_ICI data packet to modem
  1776.  
  1777.    EMSI_ICI is a response made by the caller (CLIENT) to a BBS system (HOST)
  1778.    which supports Interactive EMSI handshake protocol.  IEMSI data is contained
  1779.    inside the PRM-data area.  This data can be used for automating log on when
  1780.    call a BBS that supports IEMSI.  See default AutoD trigger assignments
  1781.    (ACE.CTL)
  1782.  
  1783.  
  1784.  
  1785.  
  1786. Notes: Xmodem/Ymodem Receive units are capable of adopting to frame size.
  1787.        128 / 1024 data frames are determined by the sender and can be sent in
  1788.        any combination.
  1789.  
  1790.        The Internal Zmodem in AceComm is capable of up to 8k data frames.  For
  1791.        compatibility, AceComm only uses larger than 1k data frames with it's
  1792.        sending unit in mailer modes.  AceComm's zmodem receive unit can handle
  1793.        up to 8k data frames at any time.
  1794.        The internal zmodem can make filename management decisions based on the
  1795.        status of option flags for "resume" and "rename".
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.        Page 26              Chapter 2  Macros list
  1813.  
  1814.  
  1815. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1816.    Dialing/Fon.Record
  1817. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1818.  
  1819.  
  1820.  
  1821.  
  1822. <DialNum> PHONE_NUMBER
  1823.  
  1824.    Builds a dial string.  Uses PRM-data MDM_DIAL_PREFIX and PHONE_NUMBER Sends
  1825.    the dial string to the modem.  One time.  No re dials as this will typically
  1826.    take place from terminal area.
  1827.  
  1828.  
  1829. <DialRecord> n
  1830.  
  1831.    Retrieves the n record found in current .FON file
  1832.  
  1833.    Re dials number until CONNECT or USER ABORT
  1834.  
  1835.        <SetFonFile> 1_114.FON <DialRecord> 1
  1836.  
  1837.  
  1838.  
  1839. -----------------------------------------
  1840. For creating a Fon.Record inside a script
  1841. -----------------------------------------
  1842.  
  1843. <InitFonRec> RECORD NAME
  1844.  
  1845.    This MACRO must be called first.  The MACRO initializes a FON RECORD with
  1846.    AceComm defaults.  RECORD NAME is copied into the system name for this
  1847.    record.
  1848.  
  1849.       <InitFonRec> Compuserve
  1850.  
  1851.  
  1852. <Fon_Num> PHONE_NUMBER
  1853.  
  1854.    Set the phone number field.  Any dial statements in ACE.CFG will be applied
  1855.    to this number when AceComm builds the dial string.
  1856.  
  1857.       <Fon_Num>468-0285
  1858.  
  1859.  
  1860. <Fon_Baud>BAUD
  1861.  
  1862.    If using a locked port, AceComm will ignore this value when getting ready to
  1863.    dial.
  1864.  
  1865.       <Fon_Baud>19200
  1866.  
  1867.  
  1868. <Fon_LineCtrl> DATA_PARITY_STOPBIT
  1869.  
  1870.    Valid parameters are as follows
  1871.          8n1
  1872.          7e1
  1873.          7n1
  1874.  
  1875.  
  1876.  
  1877.        Page 27              AceComm (tm) v 1.90
  1878.  
  1879.  
  1880. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1881.    Dialing/Fon.Record (continued)
  1882. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1883.  
  1884.       <Fon_LineCtrl>8n1
  1885.  
  1886.  
  1887. <Fon_Flags> FLAG, FLAG
  1888.  
  1889.    Possible Control Flags
  1890.  
  1891.    "Script" when set,
  1892.  
  1893.    AceComm will attempt to load and run the filename defined next to "AutoLogOn
  1894.    Script".  If a script file is not found, AceComm ignores the error and
  1895.    continues normal operation.
  1896.  
  1897.    Notes: .SCR files are looked for in the directory defined inside PRM-data
  1898.            Area "Directories"
  1899.  
  1900.  
  1901.    "Macro"  when  set,
  1902.  
  1903.    AceComm will enable the defined Auto Log on Sequence Triggers and
  1904.    corresponding MACRO stacks.
  1905.  
  1906.  
  1907.    "DTag"  when  set,
  1908.  
  1909.    AceComm will tag un-successful dial attempts (busy, etc.) to the Que
  1910.    Dialer.  An "*" character appears to the left of a Fon.Record's display
  1911.    line, when it is either Q tagged or, D tagged.  When this flag is not set,
  1912.    the only other way to Q tag a record is by manually selecting the menu
  1913.    option "<SPACEBAR>-Que" from the fon list display.
  1914.  
  1915.  
  1916.    "Capture" when  set,
  1917.  
  1918.    When this flag is selected, a capture file is opened upon
  1919.    Dial/Connect.  Any previously open capture file is first
  1920.    closed.
  1921.  
  1922.  
  1923.    "Raw"  when set,
  1924.  
  1925.    Data to capture file is as it comes in from the modem
  1926.  
  1927.  
  1928.    "Text"  when set,
  1929.  
  1930.    Data to capture file is filtered of video control codes
  1931.    as applicable to the current Video type
  1932.  
  1933.  
  1934.    "IEMSI"  when  set,
  1935.  
  1936.    Allow Interactive EMSI log on
  1937.  
  1938.   "AutoL"
  1939.  
  1940.  
  1941.  
  1942.        Page 28              Chapter 2  Macros list
  1943.  
  1944.  
  1945. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1946.    Dialing/Fon.Record (continued)
  1947. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  1948.  
  1949.   Allow auto log on methods (script/macro)
  1950.  
  1951.  
  1952. <Fon_Term> VIDEO_TYPE
  1953.  
  1954.       - Valid parameters are as follows
  1955.  
  1956.         TTY
  1957.         Ansi
  1958.         Avatar
  1959.         Av/An
  1960.         VT102
  1961.  
  1962.       <Fon_Term>Av/An
  1963.  
  1964.  
  1965. <Fon_CapFile> FILENAME
  1966.  
  1967.  
  1968. <Fon_Redial>
  1969.  
  1970.    Presents the FON record to the AceComm re dial function.
  1971.  
  1972. <Redials>n
  1973.  
  1974.    Where n is the number of redials before giving up.  This macro works only
  1975.    when dialing from a script using the <FON_ReDial> macro.  <ReDials> does
  1976.    not affect normal interactive use, and is not the same as the menu option
  1977.    found inside the "Point Mail" "Options" menu.
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.        Page 29              AceComm (tm) v 1.90
  2008.  
  2009.  
  2010. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2011.    Misc Functions
  2012. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2013.  
  2014.  
  2015.  
  2016.  
  2017. <Alarm> SECONDS
  2018.  
  2019.    Sound alarm for SECONDS
  2020.  
  2021.  
  2022. <BbsEndAceComm>
  2023.  
  2024.    This macro will Exit AceComm with an error level based on the current baud
  2025.    setting.  Baud is taken from the UART, and if the port is locked, will vary
  2026.    from the connect speed.
  2027.  
  2028.    Error level is decimal of the first 2 ascii decimal digits of the current
  2029.    UART baud setting.
  2030.  
  2031.    DTR state is left as is.
  2032.  
  2033.    Error levels returned are:
  2034.                              57 - 57600
  2035.                              38 - 38400
  2036.                              19 - 19200
  2037.                              96 -  9600
  2038.                              48 -  4800
  2039.                              24 -  2400
  2040.                              12 -  1200
  2041.                              30 -   300
  2042.    Sample use:
  2043. :Start
  2044.    echo off
  2045.    ace
  2046.    if error level 96 goto error96
  2047.    if error level 57 goto error57
  2048.    if error level 48 goto error48
  2049.    if error level 38 goto error38
  2050.    if error level 24 goto error24
  2051.    if error level 19 goto error19
  2052.    goto start
  2053. :error57
  2054.    BBS.EXE 57600
  2055.    goto Start
  2056. :error38
  2057.    BBS.EXE 38400
  2058.    goto Start
  2059. :error19
  2060.    BBS.EXE 19200
  2061.    goto Start
  2062. :error96
  2063.    BBS.EXE 9600
  2064.    goto Start
  2065. :error48
  2066.    BBS.EXE 4800
  2067.    goto Start
  2068. :error24
  2069.    BBS.EXE 2400
  2070.  
  2071.  
  2072.        Page 30              Chapter 2  Macros list
  2073.  
  2074.  
  2075. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2076.    Misc Functions (continued)
  2077. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2078.  
  2079.    goto Start
  2080. :error12
  2081.    BBS.EXE 1200
  2082.    goto Start
  2083. :End
  2084.  
  2085.  
  2086. <ClrWin>
  2087.  
  2088.    Clear screen. Clears screen above status line
  2089.  
  2090.  
  2091. <Delay> SECONDS
  2092.  
  2093.    Create program function delay.
  2094.  
  2095.    <SendStr>Go IBMCOM^M <OpenCapture>ibmcom <Delay>7 <SendStr>Read New^M
  2096.    <Delay> allows I/O, you could trip your <CheckMdm> with this one.
  2097.  
  2098.  
  2099. <EndAceComm> ERROR LEVEL
  2100.  
  2101.    <EndAceComm> 0
  2102.    AceComm session end with error level
  2103.  
  2104.    Exit AceComm back to the operating system.  End AceComm session.  A QUICK
  2105.    snap, no prompt "Are you sure?".  If your on line, your still on line when
  2106.    you come back unless "drop DTR on exit is SET"
  2107.  
  2108.    See Drop DTR on EXIT flag inside Terminal Area Options
  2109.  
  2110.    Notes: Pressing CONTROL BREAK will always end AceComm.  CONTROL BREAK is a
  2111.          back door to the <EndAceComm> macro.  When you exit the program by
  2112.          pressing CONTROL BREAK, all data is saved as usual, and program
  2113.          cleanup is as it would be using the <EndAceComm> macro.
  2114.  
  2115.  
  2116. <PollHost>1-5
  2117.  
  2118.    This macros take Host data and builds a FLO file.  The macro then creates a
  2119.    Fon.Record with the BOSS info and goes into mailer mode.  If the connect is
  2120.    un-successful or aborted, the FLO file still exits in the MAIL OUT
  2121.    directory.  Any schedule that allows mail will see the FLO file and cause
  2122.    the system to be polled again.
  2123.    Long distance calls need the "LD," schedule flag,
  2124.  
  2125.  
  2126. <RingBell> SECONDS
  2127.  
  2128.    A value of 0 does not ring bell, a value of 1 plays a victory tune, values
  2129.    from 2 - 30 ring the internal bell for the number of seconds.  This is the
  2130.    same bell sound heard in the Dial/Connect window.
  2131.  
  2132.  
  2133. <Wait_To_HHMM> hh:mm
  2134.  
  2135.  
  2136.  
  2137.        Page 31              AceComm (tm) v 1.90
  2138.  
  2139.  
  2140. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2141.    Misc Functions (continued)
  2142. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2143.  
  2144.    Wait until hour:minute 24 hour format leading zeros not needed
  2145.  
  2146.            <Wait_To_HHMM>4:10    is valid
  2147.  
  2148. --- Example ---
  2149.     <Wait_To_HHMM>15:45                ; wait till 3:45 pm
  2150.     <INITFONREC>A.C.E. Software Support; call Init FON function
  2151.     <FON_NUM>1-602-846-2940            ; set phone number
  2152.     <FON_BAUD>2400
  2153.     <FON_TERM>Av/An                    ; video type for script
  2154.     <FON_REDIAL>                       ; call redial function
  2155.     <WAITSTR>it a few moments.
  2156.     <SENDSTR>^M
  2157.     <WAITSTR>s your name:
  2158.     <SENDSTR>Michael Phelps^M
  2159.     <WAITSTR>ael Phelps [Y,n]?
  2160.     <SENDSTR>^M
  2161.     <WAITSTR>Password:
  2162.     <SENDSTR>melissa_jean^M
  2163.     <WAITSTR>Select:
  2164.     <SENDSTR>f^M
  2165.     <SENDSTR>d^Mz^Mace170.arj^M
  2166.     <RecvZmo>
  2167.     <WAITSTR>Select:
  2168.     <SENDSTR>gyn^M
  2169.     <ENDS>
  2170. --- End Example ---
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.        Page 32              Chapter 2  Macros list
  2203. Chapter 3  MACRO Parameter Symbols
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.        Page 33              AceComm (tm) v 1.90
  2268.  
  2269.  
  2270. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2271.    PRM-data Representatives
  2272. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2273.  
  2274.  
  2275.  
  2276. o MACRO parameters are UPPER case only
  2277.  
  2278. [MODA]
  2279.    Replaced with mmdd (month day)  0704 (July 4)
  2280.    Good for frequently used filesnames. Assigning a Fon.Record capture filename
  2281.    to something like CIS[MODA]  would result in a unique filename for each
  2282.    differant day you log onto Compuserve.
  2283.  
  2284.    Another example:  <OpenCapture>CIS[MODA]
  2285.  
  2286. -----------
  2287. Fon.Records
  2288. -----------
  2289.  
  2290. [FON_PWD]
  2291.  
  2292.    Replaced with the current Fon.Record "password"
  2293.  
  2294.  
  2295. [FON_ALIAS]
  2296.  
  2297.    Replaced with the current Fon.Record "alias"
  2298.  
  2299.  
  2300. [FON_ID]
  2301.  
  2302.    Replaced with the current Fon.Record "ID"
  2303.  
  2304.  
  2305. [FON_CAP]
  2306.  
  2307.    Replaced with the current Fon.Record CAPTURE "filename"
  2308.  
  2309.  
  2310. [FON_SCR]
  2311.  
  2312.    Replaced with the current Fon.Record SCRIPT "filename"
  2313.  
  2314.  
  2315.  
  2316.  
  2317. --------------
  2318. PRM-data IEMSI
  2319. --------------
  2320.  
  2321. [USER_NAME]
  2322.  
  2323.    Replaced with the current PRM-data/IEMSI "User Name"
  2324.  
  2325.       <SendStr> [USER_NAME]
  2326.  
  2327.  
  2328. [ALIAS]
  2329.  
  2330.  
  2331.  
  2332.        Page 34              Chapter 3  MACRO Parameter Symbols
  2333.  
  2334.  
  2335. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2336.    PRM-data Representatives (continued)
  2337. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2338.  
  2339.    Replaced with the current PRM-data/IEMSI "alias"
  2340.  
  2341.  
  2342. [LOCATION]
  2343.  
  2344.    Replaced with the current PRM-data/IEMSI "location"
  2345.  
  2346.  
  2347. [DATA_PNUM]
  2348.  
  2349.    Replaced with the current PRM-data/IEMSI "data #"
  2350.  
  2351.  
  2352. [VOICE_PNUM]
  2353.  
  2354.    Replaced with the current PRM-data/IEMSI "voice #"
  2355.  
  2356.  
  2357. [PASSWORD]
  2358.  
  2359.    Replaced with the current PRM-data/IEMSI "password"
  2360.  
  2361.  
  2362. The following are data from PRM-data DIRECTORY section
  2363.  
  2364.  
  2365.  
  2366.  
  2367. --------------------
  2368. PRM-data Directories
  2369. --------------------
  2370.  
  2371. [DIR_START]
  2372.  
  2373.    Replaced with the current PRM-data/DIR "start up"
  2374.    This is the directory AceComm is started in.
  2375.  
  2376.  
  2377. [DIR_FON]
  2378.  
  2379.    Replaced with the current PRM-data/DIR ".FON"
  2380.  
  2381.  
  2382. [DIR_CAP]
  2383.  
  2384.    Replaced with the current PRM-data/DIR ".CAP"
  2385.  
  2386.  
  2387. [DIR_SCR]
  2388.  
  2389.    Replaced with the current PRM-data/DIR ".SCR"
  2390.  
  2391.  
  2392. [DIR_KTS]
  2393.  
  2394.    Replaced with the current PRM-data/DIR ".KTS"
  2395.  
  2396.  
  2397.        Page 35              AceComm (tm) v 1.90
  2398.  
  2399.  
  2400. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2401.    PRM-data Representatives (continued)
  2402. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2403.  
  2404.  
  2405.  
  2406. [DIR_DNLDS]
  2407.  
  2408.    Replaced with the current PRM-data/DIR "dnlds"
  2409.    <ChgDir> [DIR_DNLDS] <RunProgram>DSZ rz -mr <ChgDir> [DIR_START]
  2410.  
  2411.  
  2412. [DIR_NODELIST]
  2413.  
  2414.    Replaced with the current PRM-data/DIR "nodelist"
  2415.  
  2416.  
  2417. [DIR_MAILIN]
  2418.  
  2419.    Replaced with the current PRM-data/DIR "mail_in"
  2420.  
  2421.  
  2422. [DIR_MAILOUT]
  2423.  
  2424.    Replaced with the current PRM-data/DIR "mail_out"
  2425.  
  2426.  
  2427.  
  2428. --------------
  2429. PRM-data Modem
  2430. --------------
  2431.  
  2432. [MDM_INIT]
  2433.  
  2434.    Replaced with the current PRM-data/MDM "init"
  2435.    <SendStr>[HANGUP]^M~[MDM_INIT]^M
  2436.  
  2437.  
  2438. [DIAL_PREFIX]
  2439.  
  2440.    Replaced with the current PRM-data/MDM "dial prefix"
  2441.  
  2442.  
  2443. [DIAL_SUFFIX]
  2444.  
  2445.    Replaced with the current PRM-data/MDM "dial suffix"
  2446.  
  2447.  
  2448. [ANSWER]
  2449.  
  2450.    Replaced with the current PRM-data/MDM "answer"
  2451.  
  2452.  
  2453. [HANGUP]
  2454.  
  2455.    Replaced with the current PRM-data/MDM "hangup"
  2456.  
  2457.  
  2458. [OFFHOOK]
  2459.  
  2460.  
  2461.  
  2462.        Page 36              Chapter 3  MACRO Parameter Symbols
  2463.  
  2464.  
  2465. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2466.    PRM-data Representatives (continued)
  2467. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2468.  
  2469.    Replaced with the current PRM-data/MDM "off hook"
  2470.  
  2471.  
  2472. [ABORT]
  2473.  
  2474.    Replaced with the current PRM-data/MDM "abort"
  2475.  
  2476.  
  2477. [RESET]
  2478.  
  2479.    Replaced with the current PRM-data/MDM "reset"
  2480.  
  2481.  
  2482. [ECHO]
  2483.  
  2484.    Replaced with the current PRM-data/MDM "echo"
  2485.  
  2486.  
  2487. [HOST_INIT]
  2488.  
  2489.    Replaced with the current PRM-data/MDM "host init"
  2490.  
  2491.  
  2492. [CMD_LINE_TERMINATOR]
  2493.  
  2494.    Replaced   with   the   current   PRM-data/MDM  "command  line
  2495.    terminator"
  2496.  
  2497.  
  2498. ------------------------
  2499. Ansi Video Control Modes
  2500. ------------------------
  2501.  
  2502. [AttrOff]
  2503.  
  2504.    All attributes Off, reset to gray
  2505.  
  2506.  
  2507. [Bold]
  2508.  
  2509.    Bold color attribute
  2510.  
  2511.  
  2512. [Faint]
  2513.  
  2514.    Faint color attribute
  2515.  
  2516.  
  2517. [Italic]
  2518.  
  2519.    Italics text on
  2520.  
  2521.  
  2522. [Blink]
  2523.  
  2524.    Blinking attribute on
  2525.  
  2526.  
  2527.        Page 37              AceComm (tm) v 1.90
  2528.  
  2529.  
  2530. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2531.    PRM-data Representatives (continued)
  2532. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2533.  
  2534.  
  2535.  
  2536. [RBlink]
  2537.  
  2538.    Rapid blinking attribute on
  2539.  
  2540.  
  2541. [Rev]
  2542.  
  2543.    Reverse video attribute on
  2544.  
  2545.  
  2546. [Con]
  2547.  
  2548.    Concealed attribute
  2549.  
  2550. -------------------------
  2551. Ansi Video Control Colors
  2552. -------------------------
  2553.  
  2554. The following foreground colors become intense with [Bold], and normal with
  2555. [Faint].
  2556.  
  2557. Replaceable macro          Foreground Color
  2558. -----------------          ----------------
  2559.  
  2560. [Bla]                      Black
  2561. [Red]                      Red
  2562. [Gre]                      Green
  2563. [Yel]                      Yellow
  2564. [Blu]                      Blue
  2565. [Mag]                      Magenta
  2566. [Cya]                      Cyan
  2567. [Whi]                      White
  2568.  
  2569.  
  2570. Replaceable macro          Background Color
  2571. -----------------          ----------------
  2572.  
  2573. [BBla]                     Black
  2574. [BRed]                     Red
  2575. [BGre]                     Green
  2576. [BYel]                     Yellow
  2577. [BBlu]                     Blue
  2578. [BMag]                     Magenta
  2579. [BCya]                     Cyan
  2580. [BWhi]                     White
  2581.  
  2582.  
  2583. -------------------------
  2584. Ansi Video Cursor Control
  2585. -------------------------
  2586.  
  2587.  
  2588. Replaceable macro          Background Color
  2589. -----------------          ----------------
  2590.  
  2591.  
  2592.  
  2593.        Page 38              Chapter 3  MACRO Parameter Symbols
  2594.  
  2595.  
  2596. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2597.    PRM-data Representatives (continued)
  2598. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2599.  
  2600. [CUp]                      Cursor Up 1
  2601. [CDn]                      Cursor Down 1
  2602. [CFw]                      Cursor Right 1
  2603. [CBw]                      Cursor Left 1
  2604. [Cls]                      Clear Screen
  2605. [Cle]                      Clear to End Of Line
  2606.  
  2607. --------------
  2608. Host Mode Data
  2609. --------------
  2610.  
  2611. [USR_NAM]
  2612.  
  2613.    Caller name as found in the USERLIST.LST file.
  2614.  
  2615. [CURTIME]
  2616.  
  2617.    Replaced with the current time in 12 hour format.
  2618.  
  2619. [DCDTIME]
  2620.  
  2621.    Replaced with the online time.
  2622.  
  2623. [EMINUTE]
  2624.  
  2625.    Replaced with ascii decimal minutes untill next event
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.        Page 39              AceComm (tm) v 1.90
  2659.  
  2660.  
  2661. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2662.    Replaceable Macro Functions
  2663. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2664.  
  2665.  
  2666.  
  2667.  
  2668. o  Replaceable MACRO Functions are UPPER case only
  2669.  
  2670. %B
  2671.    Insert ascii baud, %B is replaced with current baud setting in ascii
  2672.    format.  Current baud setting is UART line speed, if the port is locked,
  2673.    this will differ from the modem connect speed.
  2674.  
  2675. %C
  2676.    Insert ascii connect speed, same as above, but CONNECT speed in stead of
  2677.    port rate.
  2678.  
  2679. %P
  2680.    Insert ascii port, %P is replaced with current port number is ascii format.
  2681.    Port number is 1 based (com1 =1, com2 =2)
  2682.  
  2683. %FN   (Valid when used from <FileLister_>)
  2684.  
  2685.    Use from File Lister Area, %FN is replaced with currently "highlighted"
  2686.    filename.
  2687.  
  2688. %PF
  2689.    Prompt for filename, %PF is replaced with what you type into the prompt box.
  2690.  
  2691. %WK
  2692.  
  2693.    Wait for Key press, stops MACRO execution and waits for a key press.
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.        Page 40              Chapter 3  MACRO Parameter Symbols
  2724. Chapter 4  Scripts
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.        Page 41              AceComm (tm) v 1.90
  2789.  
  2790.  
  2791. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2792.    AutoScriptGen (Tm)
  2793. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2794.  
  2795.  
  2796.  
  2797.  
  2798. AceComm generates script files automatically when running in "AutoScriptGen"
  2799. mode.  The macro <AutoScrGen_> puts AceComm into "Script Learn".  AceComm's
  2800. default keyboard file, assigns ALT A to toggle <AutoScrGen_> on.
  2801.  
  2802.  
  2803. "AutoScriptGen" first prompts for a filename to use for the script file.  The
  2804. extension .SCR will automatically be appended.
  2805.  
  2806. …ÕInput WindowÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕ
  2807. ∫ÕEnter filename, <ENTER> alone when done, ESC-abortÕÕÕÕÕÕÕÕÕÕÕÕ
  2808. ∫>=> D:\ACE\CSERVE∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  2809. »ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕ
  2810.  
  2811. Having a filename, AutoScriptGen creates the file and waits for activity.  We
  2812. want to call out.  Lets bring up the FON directory and select Compuserve.
  2813.  
  2814. …Õ Telephone_directory fon\ACE.FON, 9 RecordsÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕ
  2815. ∫Õ      System Name              Phone Number     Line Control V
  2816. ∫ 1    AceComm Support BBS      1-602-846-2940     19200,8N1   A
  2817. ∫>2    CIS (local phoenix 9600) 468-0285           19200,7E1   A
  2818. ∫ 3    CIS (phones)             1-800-346-3247     2400,7E1    A
  2819. ∫ 4    Comp USA #2              1-214-620-7993     19200,8N1   A
  2820. ∫ 5    Supra Modem BBS          1-503-967-2444     19200,8N1   A
  2821. ∫ 6  - Comput Connections (PCB) 1-202-547-2008     19200,8N1   A
  2822. ∫ 7  - Comp USE (Dallas TX)     1-214-620-2255     19200,8N1   A
  2823. ∫  Dial  Edit  <SPACEBAR>-Que  Circling_dial_queue  Fon_files  S
  2824. »Õ Add_record  Remove_record  UnMark_All  Import  Paint  Quit  H
  2825.  
  2826. AutoScripGen will write Fon.Record information to the script file in the form
  2827. of macro commands.
  2828.  
  2829. The macro to start "Script Learn" is <AutoScrGen>.  AceComm's default setup
  2830. uses ALT A to toggle <AutoScrGen> on.  The following short scrip is exactly as
  2831. was recorded by the "Script Learn" function.
  2832.  
  2833. <INITFONREC>CIS (local phoenix 9600)
  2834. <FON_NUM>468-0285
  2835. <FON_LINECTRL>7E1
  2836. <FON_BAUD>19200
  2837. <FON_TERM>Av/An
  2838. <FON_FLAGS>Macro,DTag,Cap,Text,IEMSI,
  2839. <ReDials>100
  2840. <FON_REDIAL>
  2841. <LocalKeys>On
  2842. <OPENCAPTURE>cserve.CAP
  2843. <SendStr>^M
  2844. <WaitStr>Host Name:
  2845. <SendStr>cis^M
  2846. <WaitStr>User ID:
  2847. <SendStr>75120,3306^M
  2848. <WaitStr>Password:
  2849. <SendStr>your/pwd^M
  2850. <WaitStr>r HELp!
  2851.  
  2852.  
  2853.        Page 42              Chapter 4  Scripts
  2854.  
  2855.  
  2856. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2857.    AutoScriptGen (Tm) (continued)
  2858. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2859.  
  2860. <SendStr>rea^M
  2861. <WaitStr>e(s) # (or ALL)?!
  2862. <SendStr>all^M
  2863. <WaitStr>CR> for more !
  2864. <SendStr>^M
  2865. <WaitStr>CR> for more !
  2866. <SendStr>^M
  2867. <WaitStr>CR> for more !
  2868. <SendStr>^M
  2869. <WaitStr>e, REPly or NEXt!
  2870. <SendStr>^M
  2871. <WaitStr>CR> for more !
  2872. <SendStr>^M
  2873. <WaitStr>CR> for more !
  2874. <SendStr>^M
  2875. <WaitStr>e, REPly or NEXt!
  2876. <SendStr>^M
  2877. <WaitStr> ADDress or HELp!
  2878. <SendStr>^M
  2879. <WaitStr>ssages? (Y or N)!
  2880. <SendStr>n^M
  2881. <WaitStr>Enter choice !
  2882. <SendStr>go IbmPro^M
  2883. <CLOSECAPTURE>
  2884. <OPENCAPTURE>ibmpro.CAP
  2885. <WaitStr>CR> !
  2886. <SendStr>Read New^M
  2887. <WaitStr>CR> !
  2888. <SendStr>^M
  2889. <CLOSECAPTURE>
  2890. <WaitStr>Enter choice !
  2891. <SendStr>off^M
  2892. <WaitStr>Host Name:
  2893. <SendStr>off^M
  2894. <ENDS>
  2895.  
  2896.  
  2897.  
  2898. To begin "Script Learn", I pressed ALT A for <AutoScrGen>.  This macro will
  2899. turn on "Script Learn" and prompt you for a filename.  Type in the filename for
  2900. the new script.  Next, I pressed ALT D for <PhoneList>, and selected the local
  2901. 9600 CIS record for dialing.
  2902.  
  2903. This segment was written to the script when entering the dialer.
  2904.  
  2905. <INITFONREC>CIS (local phoenix 9600)
  2906. <FON_NUM>468-0285
  2907. <FON_LINECTRL>7E1
  2908. <FON_BAUD>19200
  2909. <FON_TERM>Av/An
  2910. <FON_FLAGS>Macro,DTag,Cap,Text,IEMSI,
  2911. <ReDials>100
  2912. <FON_REDIAL>
  2913. <LocalKeys>On
  2914. <OPENCAPTURE>cserve.CAP
  2915.  
  2916.  
  2917.  
  2918.        Page 43              AceComm (tm) v 1.90
  2919.  
  2920.  
  2921. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2922.    AutoScriptGen (Tm) (continued)
  2923. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2924.  
  2925. The dialer sees we are in "Script Learn" and writes the macros required to
  2926. initialize a Fon.Record.  Notice the "Flags" include opening a capture file
  2927. upon Dial/Connect.  The "Cap," flag was recorded here, and is responsible for
  2928. the "<OpenCapture>cserve.CAP" to be recorded into the script.  Because the
  2929. <OpenCapture> macro has been recorded, we want to edit out the "Cap," flag.  If
  2930. we leave it in, the capture file will be opened twice, it not be a problem,
  2931. except for duplicate time stamps.  It is nice to have a capture file open while
  2932. recording in "Script Learn", a capture file provides a good reference later on
  2933. when editing the script.
  2934.  
  2935. What follows is a script that captures a forum (IBMPRO) to a capture file, and
  2936. also checks for "Compuserve Mail" along the way.  I have CIS configured to
  2937. announce my mail, and so some decision making is required for the scripts to
  2938. operate all the time.  The fastest way for me to read a forum is to capture it
  2939. to file 2 or 3 times a week.  I can reply off line.  Since personal mail
  2940. announcements are capable of tripping up a script, like the one generated
  2941. above, some more complex macros are put to work.
  2942.  
  2943.  
  2944. ;    We can place comments into our scripts.  ";" is used as a comment
  2945. ;    character.  Text following ";" is a comment.
  2946.    <DispStr>[AttrOff] <ClrWin>
  2947.    <DispStr>[BWhi][Blu] <DispText>Intro <DispStr>[AttrOff]
  2948.    <DispStr>^M^JQ)uit
  2949.    <DispStr>^M^JAny key continues, or wait 10 seconds^M
  2950.    <GetKey>10    <if>Q <Goto>@@EndScript
  2951.  
  2952.  
  2953. <INITFONREC>CIS (local phoenix 9600)
  2954. <FON_NUM>468-0285
  2955. <FON_LINECTRL>7E1
  2956. <FON_BAUD>19200
  2957. <FON_TERM>Av/An
  2958. <FON_FLAGS>Macro,DTag,Text,IEMSI,   ; I deleted "Cap," from the flags
  2959.  
  2960. <ReDials>100                        ; This macro gives control over how many
  2961.                                     ; times to re-dial before giving up.
  2962. <FON_REDIAL>
  2963. <LocalKeys>On
  2964. <OPENCAPTURE>cserve.CAP
  2965.  
  2966.  
  2967.  
  2968. ; Note: when stacking macros, a space character MUST precede the macro.
  2969. <SendStr>^M
  2970. <WaitTime>15                        ; 15 seconds to timeout (<WaitStr> only)
  2971. <WaitStr>Host Name: <SendStr>cis^M
  2972. <WaitStr>User ID: <SendStr>75120,3306^M
  2973. <WaitStr>Password: <SendStr>your/pwd^M
  2974.  
  2975. ;   The following checks for personal messages, "Compuserve Mail".
  2976. ;   waiting for me. I won't have messages waiting every time I log on to
  2977. ;   Compuserve. We need a way for the script to make decisions. If there are
  2978. ;   messages, we can stop and read them, recording them into the already open
  2979. ;   capture file, if no messages, we want to continue to capture the forum, and
  2980. ;   log off.
  2981.  
  2982.  
  2983.        Page 44              Chapter 4  Scripts
  2984.  
  2985.  
  2986. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2987.    AutoScriptGen (Tm) (continued)
  2988. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  2989.  
  2990.  
  2991.    <Timer0>30                       ; Set a timer to 30 seconds
  2992. :@@CheckMail                        ; Label we loop to while checking
  2993.    <CheckMdm>CompuServe Mail <if>1 <goto>@@PersonalMail
  2994.    <CheckMdm>messages pending <if>1 <goto>@@PersonalMail
  2995.    <CheckMdm>SCAn, REAd, <if>1 <goto>@@PersonalMail
  2996.    <CheckMdm>Enter choice ! <if>1 <goto>@@CompuserveTop
  2997.  
  2998.    <Timer0> <if>1 <Goto>@@CheckMail ; <if>1 while not timed out
  2999. ;
  3000. ;  Fall through to the forum on timeout
  3001. ;
  3002.    <SendStr>^M
  3003.    <Goto>@@IBMPRO
  3004. ;
  3005. ;  Here if we got a hit with <CheckMdm>. <CheckMdm> is not case sensitive.
  3006. ;
  3007. :@@PersonalMail
  3008.    <WaitTime>10                     ; New, faster timeout for <WaitStr>
  3009.    <OPENCAPTURE>cismail.CAP         ; <WaitStr> falls through on timeout
  3010.    <SendStr>Read^M
  3011.    <WaitStr># (or ALL)?! <SendStr>all^M
  3012.  
  3013.    <Timer0>300          ; 5 minutes till timeout, up this if you are popular
  3014. :@@ReadMail
  3015.    <CheckMdm>CR> for more ! <if>1 <SendStr>^M
  3016.    <CheckMdm>REPly or NEXt! <if>1 <SendStr>Next^M
  3017.    <CheckMdm>SCAn, REAd, <if>1 <SendStr>^M
  3018.    <CheckMdm>CR> for more ! <if>1 <SendStr>^M
  3019.    <CheckMdm>Delete these messages? (Y or N)! <if>1 <goto>@@AfterMail
  3020.    <Timer0> <if>1 <goto>@@ReadMail
  3021. ;
  3022. ;  Fall through to here on timeout
  3023. ;
  3024. :@@AfterMail
  3025.    <SendStr>N^M
  3026.    <Timer0>60                       ; Here we use 2 timers in 2 loops
  3027. :@@CompuserveTop
  3028. :@@ResetTimer1
  3029.    <Timer1>10
  3030. :@@TenSecondLoop
  3031.    <CheckMdm>Enter choice ! <if>1 <goto>@@IBMPRO
  3032.    <CheckMdm>Last page ! <if>1 <SendStr>^M
  3033.    <Timer1> <if>1 <goto>@@TenSecondLoop
  3034.    <SendStr>^M
  3035.    <Timer0> <if>1 <goto>@@ResetTimer1
  3036.  
  3037. :@@LogOff
  3038.    <SendStr>off^M <Delay>5 <SendStr>off^M <Delay>2 <MdmHangup>
  3039.  
  3040. :@@IBMPRO
  3041.    <CLOSECAPTURE>
  3042.    <SendStr>go IbmPro^M <OPENCAPTURE>ibmpro.CAP
  3043.    <Delay>7
  3044.    <SendStr>Read New^M
  3045.    <MdmStill>10
  3046.  
  3047.  
  3048.        Page 45              AceComm (tm) v 1.90
  3049.  
  3050.  
  3051. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3052.    AutoScriptGen (Tm) (continued)
  3053. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3054.  
  3055.  
  3056.    <CheckMdm>CR> ! <if>1 <SendStr>^M
  3057.    <CLOSECAPTURE>
  3058.                            ; If you want more forums
  3059.                            ; you can un-comment the following line
  3060.                           <Goto>@@IBMCOM
  3061.  
  3062.    <WaitTime>15
  3063.    <WaitStr>Enter choice ! <SendStr>off^M
  3064.    <WaitStr>Host Name: <SendStr>off^M
  3065.    <MdmHangup>
  3066.    <Goto>@@EndScript
  3067.  
  3068. :@@IBMCOM
  3069.    <SendStr>go IBMCOM^M <OPENCAPTURE>ibmCOM.CAP
  3070.    <Delay>7
  3071.    <SendStr>Read New^M
  3072.    <MdmStill>10
  3073.  
  3074.    <CheckMdm>CR> ! <if>1 <SendStr>^M
  3075.  
  3076.    <CLOSECAPTURE>
  3077.    <WaitTime>15
  3078.  
  3079.    <WaitStr>Enter choice ! <SendStr>off^M
  3080.    <WaitStr>Host Name: <SendStr>off^M
  3081.    <MdmHangup>
  3082.  
  3083. :@@EndScript
  3084.  
  3085. <ENDS>
  3086.  
  3087. {-DATA_AREA-}
  3088. {-TEXT_START-}Intro
  3089. ⁄ƒƒƒƒƒƒ Compuserve Forums ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  3090. ≥                                                                            ≥
  3091. ≥  This script calls Compuserve, and captures forums to their respectively   ≥
  3092. ≥  named capture files. The script demonstrates some basic decision making   ≥
  3093. ≥  using <CheckMdm> and <Timer0> macros. The script is capable of capturing  ≥
  3094. ≥  personal mail, if any, and continue on to get the forums.                 ≥
  3095. ≥  The script will pause for 10 seconds after it has logged onto Compuserve. ≥
  3096. ≥  This pause is where we detect for any "Compuserve Mail" that may be       ≥
  3097. ≥  waiting for us.                                                           ≥
  3098. ≥                                                                            ≥
  3099. ≥   You will need to edit the script where the login process sends your      ≥
  3100. ≥   CIS ID  and  CIS password.                                               ≥
  3101. ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  3102. {-TEXT_END-}
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113.        Page 46              Chapter 4  Scripts
  3114.  
  3115.  
  3116. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3117.    Labels, Gotos, Data Area
  3118. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3119.  
  3120.  
  3121.  
  3122.  
  3123.          :Label
  3124.             Labels begin with ':' character
  3125.             Labels are used as arguments to the <goto> macro
  3126.  
  3127.          <goto> label
  3128.             "Label"  can be defined any where in the script file, either
  3129.             before or after a <goto> macro.
  3130.  
  3131.          <if> condition
  3132.             AceComm supports a set of conditional macros. Conditional
  3133.             macros return either 1 or 0.
  3134.  
  3135.          {-DATA_AREA-}
  3136.             Defines a data area
  3137.  
  3138.          {-TEXT_START-}
  3139.           see examples
  3140.          {-TEXT_END-}
  3141.  
  3142.  
  3143.             {-Data_ Area-} will be covered extensively next month with
  3144.             many complex scripts as well as complete documentation.
  3145.  
  3146.             The following script introduces some un-documented script
  3147.             language features.
  3148.  
  3149.  
  3150.             Follows is a basic script which includes a data area.
  3151.  
  3152.          ------------snip here -------------
  3153.          <ClearWindow>
  3154.          <DispText>Intro
  3155.          <DispText>Ask_Continue
  3156.          :GetKey
  3157.          <GetKey>
  3158.             <if>Y
  3159.             <goto>Dial
  3160.             <if>N
  3161.             <goto>End
  3162.             <goto>GetKey
  3163.          :Dial
  3164.          <INITFONREC>ACECOMM Support BBS      ; Initialize a FON RECORD
  3165.          <FON_NUM>1-602-846-2940            ;
  3166.          <FON_BAUD>19200                    ;
  3167.          <FON_TERM>Av/An                    ;
  3168.          <FON_REDIAL>                       ; Go into re dial mode
  3169.          <DispText>Connect
  3170.          <WAITSTR> your name:
  3171.          <GetDCD>                           ; <WaitStr> may have timed
  3172.             <if>1                           ; out
  3173.             <goto>Connect
  3174.             <goto>Dial
  3175.          :Connect
  3176.  
  3177.  
  3178.        Page 47              AceComm (tm) v 1.90
  3179.  
  3180.  
  3181. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3182.    Labels, Gotos, Data Area (continued)
  3183. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3184.  
  3185.          <SENDSTR>Michael Phelps^M
  3186.          <SENDSTR>Y^M
  3187.          <SENDSTR>password^M
  3188.          <WAITSTR>Select:
  3189.          <SENDSTR>ff
  3190.          :End
  3191.          <ENDS>
  3192.  
  3193.  
  3194.          {-DATA_AREA-}
  3195.          {-TEXT_START-}Intro
  3196.          -- Generic Log On Script --
  3197.          {-TEXT_END-}
  3198.          {-TEXT_START-}Ask_Continue
  3199.          Continue (Y/n) {-TEXT_END-}
  3200.  
  3201.          {-TEXT_START-}Connect
  3202.          -- Connect --
  3203.          {-TEXT_END-}
  3204.          ------------snip here -------------
  3205.  
  3206.  
  3207.  
  3208. ------------snip here -------------
  3209.     <Wait_To_HHMM>15:45                ; wait till 3:45 pm
  3210.     <INITFONREC>A.C.E. Software Support; call Init FON function
  3211.     <FON_NUM>1-602-846-2940            ; set phone number
  3212.     <FON_BAUD>2400
  3213.     <FON_TERM>Av/An                    ; video type for script
  3214.     <FON_REDIAL>                       ; call redial function
  3215.     <WAITSTR>it a few moments.
  3216.     <SENDSTR>^M
  3217.     <WAITSTR>s your name:
  3218.     <SENDSTR>Michael Phelps^M
  3219.     <WAITSTR>ael Phelps [Y,n]?
  3220.     <SENDSTR>^M
  3221.     <WAITSTR>Password:
  3222.     <SENDSTR>melissa_jean^M
  3223.     <WAITSTR>Select:
  3224.     <SENDSTR>f^M
  3225.     <SENDSTR>d^Mz^Mace170.arj^M
  3226.     <RecvZmo>
  3227.     <WAITSTR>Select:
  3228.     <SENDSTR>gyn^M
  3229.     <ENDS>
  3230.     <ENDS>
  3231. ------------snip here -------------
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.        Page 48              Chapter 4  Scripts
  3244.  
  3245.  
  3246. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3247.    Mini Host Script Example
  3248. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3249.  
  3250.  
  3251.  
  3252. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3253. ;;
  3254. ;;          --  Mini Host Mode Script for AceComm v1.86  --
  3255. ;;
  3256. ;;  Note:  Labels are CaSe sensitive
  3257. ;;         :@@Start    will not be found if accessed as <goto>@@start
  3258. ;;                                                          => S <=
  3259. ;;         Labels begin with ':' character, and start at the beginning
  3260. ;;         of a line
  3261. ;;         Each label must be a unique character string
  3262. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3263. ;
  3264. ;         Back up here after caller
  3265. ;
  3266. ;;;;;;;;;;
  3267. :@@Start
  3268. ;;;;;;;;;;
  3269.  
  3270. <HostEcho>OFF <SendStr>ATE0^M       ; We do not want the modem to echo
  3271.                                     ; as AceComm handles this when we turn
  3272.                                     ; <Host_Echo>ON
  3273. <AutoAnswer>On
  3274.  
  3275.    <LocalKeys>Off
  3276.    <SetDTR>Off <Delay>1 <SetDTR>On  ; This will hang up most modems
  3277.    <SetLCtrl>8n1                    ; new macro for 1.86
  3278.    <Delay>2                         ; This will help wait for modem response
  3279.                                     ; strings to clear
  3280.  
  3281.    <ClrWin>
  3282.    <DispText>TellAutoAnswer         ; Display text defined in Data Area
  3283.                                     ; %P (port), %B (connect speed)
  3284.    <DispStr>Port %P Setup for %B^M^JWaiting for caller^M^J
  3285. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3286. ;
  3287. ; Top of wait for caller loop
  3288. ;
  3289. ;;;;;;;;;;
  3290. :@@Wait
  3291. ;;;;;;;;;;
  3292.    <DispStr>^M[CURTIME]^M
  3293.  
  3294.    <GetDCD> <if>1 <goto>@@DCDLogIn  ; Here is where we detect a caller
  3295.    <GetKey>5 <if>L <goto>@@LogIn   ; Allow local keyboard login
  3296.             <if>C <DOSShell_>
  3297.             <if>ALT+J <DOSShell_>
  3298.             <if>R <RunProg>list.com
  3299.             <if>E <goto>@@END       ; Provide a clean exit
  3300.    <goto>@@Wait                     ; 'Wait' is a case sensitive label...
  3301. ;
  3302. ; Here if carrier detected
  3303. ;
  3304. :@@DCDLogIn
  3305. ;
  3306.  
  3307.  
  3308.        Page 49              AceComm (tm) v 1.90
  3309.  
  3310.  
  3311. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3312.    Mini Host Script Example (continued)
  3313. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3314.  
  3315. ; Clear screen,  Send ansi video request,  Display banner
  3316. ;
  3317.    <Var0>0                          ; See if we can set this to 1 with
  3318.                                     ; our ansi video detection scheme.
  3319.    <Timer0>3                        ; Init Timer0 and set 3 second timeout
  3320.    <RawCapture>On                   ; Allow all caller's input in wait buffer
  3321.                                     ; ESC[6n  is video request (detect ansi)
  3322.    <SendStr>^L^[[6n^MMini Host Script for AceComm v1.86^M
  3323. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3324. ;
  3325. ; Loop here for 3 second maximum waiting for answer to Ansi detect sequence
  3326. ;
  3327. :@@DetectAnsi
  3328.    <CheckMdm> [ <if>1 <goto>@@AnsiDetected     ; Remote will answer with
  3329.    <Timer0> <if>1 <goto>@@DetectAnsi           ; ESC[n;nR  if ANSI capable
  3330.    <RawCapture>Off
  3331.    <HostEcho>ON                                ; HostEcho translates CR
  3332.                                                ; into CR,LF pair
  3333.    <DispStr>^M^JAnsi video request un-answered ; Ansi video request
  3334.    <goto>@@Welcome
  3335. :@@AnsiDetected
  3336.    <Var0>1
  3337.    <RawCapture>Off
  3338.    <HostEcho>ON                     ; HostEcho translated CR into CR,LF pair
  3339.    <SendStr> ^M^JAnsi video detected!
  3340.  
  3341. :@@Welcome
  3342.    <Var0> <if>1 <DispStr>^M^J[Whi]Connected at [Blink][Bold][Red]%C[AttrOff]
  3343.    <Var0> <if>0 <DispStr>^M^JConnected at  %C
  3344.  
  3345. ;
  3346. ; Caller names are pre registered into an ascii comment file "USERLIST.LST"
  3347. ; Sample Line:  Michael Phelps,acecomm,9
  3348. ; where "acecomm" is the password
  3349. ;
  3350. ;;;;;;;;;;;
  3351. :@@LogIn
  3352. ;;;;;;;;;;;
  3353.    <Var0> <if>1 <DispStr>[Whi]
  3354.    <DispStr> ^M^JEnter your first and last name:
  3355.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  3356.    <DispStr>^M^J%FN not found!
  3357.  
  3358.    <DispStr> ^M^JEnter your first and last name:
  3359.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  3360.    <DispStr>^M^J%FN not found!
  3361.  
  3362.    <DispStr> ^M^JEnter your first and last name:
  3363.    <GetStr>26 <FindUser> <if>1 <goto>@@GetPwd
  3364.  
  3365.    <DispStr>^L^M^JYour name has not been registered in the user file, you may
  3366.    <DispStr>^M^Joptionaly leave a short not for the SysOp, pleas include your
  3367.    <DispStr>^M^Jfirst and last name along with a password.
  3368.    <DispStr>^M^J^M^JWould you like to leave a note? (Y)es/(N)o
  3369. :@@1
  3370.    <GetKey>60
  3371.  
  3372.  
  3373.        Page 50              Chapter 4  Scripts
  3374.  
  3375.  
  3376. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3377.    Mini Host Script Example (continued)
  3378. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3379.  
  3380.    <if>Y <goto>@@LogOffComment
  3381.    <if>N <goto>@@OFF
  3382.    <Goto>@@1
  3383. :@@GetPwd
  3384.    <DispStr> ^M^JEnter password:
  3385.    <GetStr>26 <UserPwd> <if>1 <goto>@@MainMenu
  3386.    <DispStr> ^M^JEnter password:
  3387.    <GetStr>26 <UserPwd> <if>1 <goto>@@MainMenu
  3388.    <DispStr> ^M^JEnter password:
  3389.    <GetStr>26 <UserPwd> <if>0 <goto>@@OFF
  3390.                               <goto>@@MainMenu
  3391. :@@LogOffComment
  3392.    <HostEcho>ON                     ; This needs be on for message, even local
  3393.    <GetMsg> <Goto>@@OFF
  3394. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3395. ;
  3396. ; Top of main menu loop
  3397. ;
  3398. :@@MainMenu
  3399.    <DispStr>^L
  3400.    <Var0> <if>1 <DispStr>[Bblu][Whi][Bold][Cle]
  3401.    <DispStr>                 --  AceComm Mini Host Script for AceComm v1.86 --
  3402.    <Var0> <if>1 <DispStr>[AttrOff]
  3403.    <DispStr>^M^J^M^J
  3404.  
  3405.    <Var0> <if>1 <DispText>AnsiMainMenu
  3406.    <Var0> <if>0 <DispText>MainMenu
  3407.  
  3408. :@@MainMenuKey
  3409.    <GetKey>60                       ; <GetKey> times out every n seconds
  3410.    <if>1 <goto>@@BBS                ; so if the caller drops carrier, we
  3411.    <if>C <goto>@@Comment            ; can fall through to the carrier check
  3412.    <if>Y <goto>@@YourMail           ; below. Default timeout is 60 if param.
  3413.    <if>R <goto>@@ReadMail
  3414.    <if>F <goto>@@Files
  3415.    <if>G <goto>@@OFF
  3416.    <if>^M <goto>@@MainMenu          ; ^M for <CR>
  3417.  
  3418.    ; Note: any invalid key press while off line,
  3419.    ;       results in '<goto>'@@Start
  3420.    <GetDCD> <if>0 <goto>@@NoDCD     ; Detect if caller hung up
  3421.    <goto>@@MainMenuKey              ; Wait for a key press we can process
  3422.  
  3423. :@@BBS
  3424.    <ChgDir>BBS <RunProg>BBS %P %C <ChgDir>[DIR_START]
  3425.    <goto>@@MainMenu
  3426. :@@Comment
  3427.    <HostEcho>ON                     ; This needs be on for message, even local
  3428.    <GetMsg> <Goto>@@MainMenu
  3429. :@@YourMail
  3430.    <HostEcho>ON                     ; This needs be on for message, even local
  3431.    <YourMsg> <Goto>@@MainMenu
  3432. :@@ReadMail
  3433.    <HostEcho>ON                     ; This needs be on for message, even local
  3434.    <ReadMsg> <Goto>@@MainMenu
  3435. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3436.  
  3437.  
  3438.        Page 51              AceComm (tm) v 1.90
  3439.  
  3440.  
  3441. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3442.    Mini Host Script Example (continued)
  3443. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3444.  
  3445. ; Files Menu
  3446. ;
  3447. :@@Files
  3448.    <DispStr>^M^L^M
  3449.    <Var0> <if>1 <DispStr>[BWhi][Blu]
  3450.    <DispStr>^M^J  ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  3451.    <DispStr>^M^J  ≥ (Z)modem  AceComm version 1.86 ≥
  3452.    <DispStr>^M^J  ≥ (D)ownload file                ≥
  3453.    <DispStr>^M^J  ≥ (U)load file                   ≥
  3454.    <DispStr>^M^J  ≥ (L)ist file titles             ≥
  3455.    <DispStr>^M^J  ≥ (R)aw directory list           ≥
  3456.    <DispStr>^M^J  ≥ (M)ain menu                    ≥
  3457.    <DispStr>^M^J  ≥ (G)ood bye                     ≥
  3458.    <DispStr>^M^J  ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  3459.    <Var0> <if>1 <DispStr>[AttrOff]
  3460.    <DispStr>^M^J^M^JSelect:
  3461.  
  3462. :@@FilesKey
  3463.    <GetKey>60
  3464.    <if>Z <goto>@@DownloadAceComm
  3465.    <if>D <goto>@@DownloadFile
  3466.    <if>U <goto>@@UploadFile
  3467.    <if>L <goto>@@ListFiles
  3468.    <if>R <goto>@@RawDir
  3469.    <if>M <goto>@@MainMenu
  3470.    <if>G <goto>@@OFF
  3471.    <if>^M <goto>@@Files
  3472.    <GetDCD> <if>0 <goto>@@NoDCD     ; Detect if caller hung up
  3473.    <goto>@@FilesKey
  3474.  
  3475. :@@DownloadAceComm
  3476.    <SendZmo@>@ACECOMM.LST
  3477.    <goto>@@Files
  3478. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3479. ; Provide Download Options
  3480. ;
  3481. :@@DownloadFile
  3482.    <ChgDir>[DIR_DNLDS]              ; So files displayed with
  3483.                                     ; <DirList>[DIR_DNLDS]\*.* can be found
  3484.    <DispStr> ^M^JEnter filename: <GetStr>15 <DispStr>^M
  3485. :@@ChooseDnProtocol
  3486.    <DispStr>^M^JZ)modem
  3487.    <DispStr>^M^JY)modem  / Ymodem G
  3488.    <DispStr>^M^JX)modem
  3489.    <GetKey>60
  3490.    <if>Z <goto>@@ZmodemSend
  3491.    <if>Y <goto>@@YmodemSend
  3492.    <if>X <goto>@@XmodemSend
  3493.    <if>^M <goto>@@RetFiles
  3494.  
  3495.    <GetDCD> <if>0 <goto>@@NoDCD     ; Detect if caller hung up
  3496.    <goto>@@ChooseDnProtocol
  3497.  
  3498. :@@ZmodemSend
  3499.    <SendZmo>%FN
  3500.    <ChgDir>[DIR_START] <goto>@@Files
  3501.  
  3502.  
  3503.        Page 52              Chapter 4  Scripts
  3504.  
  3505.  
  3506. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3507.    Mini Host Script Example (continued)
  3508. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3509.  
  3510. :@@YmodemSend
  3511.    <SendYmo1K>%FN
  3512. :@@RetFiles
  3513.    <ChgDir>[DIR_START] <goto>@@Files
  3514. :@@XmodemSend
  3515.    <SendXmo>%FN
  3516.    <ChgDir>[DIR_START] <goto>@@Files
  3517. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3518. ; Provide Upload Options
  3519. ;
  3520. :@@UploadFile
  3521. :@@ChooseUpProtocol
  3522.    <DispStr>^M^JZ)modem
  3523.    <DispStr>^M^JG)Ymodem G
  3524.    <DispStr>^M^JY)modem
  3525.    <DispStr>^M^JX)modem
  3526.    <GetKey>60
  3527.    <if>Z <goto>@@ZmodemRecv
  3528.    <if>G <goto>@@YmodemGRecv
  3529.    <if>Y <goto>@@YmodemRecv
  3530.    <if>X <goto>@@XmodemRecv
  3531.    <if>^M <goto>@@Files             ; <CR> alone aborts
  3532.  
  3533.    <GetDCD> <if>0 <goto>@@NoDCD     ; Detect if caller hung up
  3534.    <goto>@@ChooseUpProtocol
  3535.  
  3536. :@@ZmodemRecv
  3537.    <DispStr>^M^JBegin Zmodem Upload^M
  3538.    <RecvZmo>
  3539.    <goto>@@Files
  3540. :@@YmodemGRecv
  3541.    <DispStr>^M^JBegin Ymodem G Upload^M
  3542.    <RecvYmoG>                             ; Note: the sending Ymodem sends
  3543.    <goto>@@Files                          ; filename in the first data block
  3544. :@@YmodemRecv
  3545.    <DispStr>^M^JBegin Ymodem Upload^M
  3546.    <RecvYmo1k>
  3547.    <goto>@@Files
  3548. :@@XmodemRecv
  3549.    <DispStr> ^M^JEnter filename: <GetStr>15 <DispStr>^M
  3550.    <RecvXmo>%FN
  3551.    <goto>@@Files
  3552. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3553. ; Display ready made files list to caller
  3554. ;
  3555. :@@ListFiles
  3556.    <SendAscii>files.lst
  3557.    <DispStr>^M^JPress CR
  3558.    <GetKey>60
  3559.    <goto>@@Files
  3560. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3561. ; Display directory to caller
  3562. ;
  3563. :@@RawDir
  3564.    <DispStr>^M^J
  3565.    <DirList>[DIR_DNLDS]\*.*
  3566.  
  3567.  
  3568.        Page 53              AceComm (tm) v 1.90
  3569.  
  3570.  
  3571. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3572.    Mini Host Script Example (continued)
  3573. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3574.  
  3575.    <DispStr>^M^JPress CR
  3576.    <GetKey>60
  3577.    <goto>@@Files
  3578. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3579. ;
  3580. ; Here when caller selects G)o option
  3581. ;
  3582. :@@NoDCD
  3583.    <DispStr>^M^JCarrier not detected, Restarting script!
  3584.    <DispStr>^M^JLocal mode, you can navigate the script by making correct
  3585.    <DispStr>^M^Jkey press for the menu options.
  3586. :@@OFF
  3587.    <DispStr>^M^L^MGood bye [USR_NAM]!
  3588.    <DispStr>^M^JYour on line time [DCDTIME]^M^J
  3589.  
  3590.    <MdmHangUp>
  3591.    AutoAnswer>OFF                   ; Need this to recycle properly
  3592.  
  3593.    <Delay>2                         ; This will help wait for modem response
  3594.                                     ; strings to clear
  3595.    <goto>@@Start
  3596. ;
  3597. ; Here when local keyboard E)nd option is selected
  3598. ;
  3599. :@@END
  3600.    <AutoAnswer>OFF
  3601.    <ClrWin>
  3602. <EndS>
  3603. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3604. {-DATA_AREA-}
  3605. {-TEXT_START-}TellAutoAnswer
  3606.  
  3607.               [37;44m --  AceComm Mini Host Script for AceComm v1.86 --  [0m
  3608.  
  3609.    AceComm was first release on May 15 of 1993.  Since then the
  3610.    script/macro language has evolved slowly.  This is a very simple script
  3611.    allowing pre registered log in.  The macro language will continue to
  3612.    evolve making possible a more elaborate host script.  For a powerful
  3613.    Host mode, take a look at the AutoAnswer setup area.  People are using
  3614.    AceComm as a front-end, and calling their favorite BBS software from the
  3615.    AutoAnswer macros.  Sample setups for external BBS software are included
  3616.    in the manual.
  3617.                                             [34;47m⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø [0m
  3618.                                             [34;47m≥ L)ocal log in    ≥ [0m
  3619.                                             [34;47m≥ C)ommand Shell   ≥ [0m
  3620.                                             [34;47m≥ R)un LIST.COM    ≥ [0m
  3621.                                             [34;47m≥ E)nd script      ≥ [0m
  3622.                                             [34;47m¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ [0m
  3623. {-TEXT_END-}
  3624.  
  3625. {-TEXT_START-}AnsiMainMenu
  3626.  
  3627.                     [34;47m⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø [0m
  3628.                     [34;47m≥ 1) Through to BBS   ≥ [0m
  3629.                     [34;47m≥ 2) Download (*.REP) ≥ [0m
  3630.                     [34;47m≥ 3) Uplopad (*.QWK)  ≥ [0m
  3631.                     [34;47m≥ C)omment to SysOp   ≥ [0m
  3632.  
  3633.  
  3634.        Page 54              Chapter 4  Scripts
  3635.  
  3636.  
  3637. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3638.    Mini Host Script Example (continued)
  3639. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  3640.  
  3641.                     [34;47m≥ Y)our mail          ≥ [0m
  3642.                     [34;47m≥ R)ead all messages  ≥ [0m
  3643.                     [34;47m≥ F)iles              ≥ [0m
  3644.                     [34;47m≥ G)o (hang up)       ≥ [0m
  3645.                     [34;47m¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ [0m
  3646.  Enter Choice: {-TEXT_END-}
  3647. {-TEXT_START-}MainMenu
  3648.  
  3649.                    ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  3650.                    ≥ 1) Through to BBS   ≥
  3651.                    ≥ 2) Download (*.REP) ≥
  3652.                    ≥ 3) Uplopad (*.QWK)  ≥
  3653.                    ≥ C)omment to SysOp   ≥
  3654.                    ≥ Y)our mail          ≥
  3655.                    ≥ R)ead all messages  ≥
  3656.                    ≥ F)iles              ≥
  3657.                    ≥ G)o (hang up)       ≥
  3658.                    ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  3659.  Enter Choice: {-TEXT_END-}
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.        Page 55              AceComm (tm) v 1.90
  3700. Chapter 5  LICENSE
  3701.  
  3702.  
  3703. AceComm is not a Public Domain program and is not free.  AceComm is copyright
  3704. (C) 1990-1993 by MGP Programming Services.
  3705.  
  3706. Non-registered users of this program are granted a limited 30 day license to
  3707. evaluate the programs suitability for their requirements.  Any usage of AceComm
  3708. beyond the evaluation time period requires registration of each copy of the
  3709. program used.  Use of non- registered copies of AceComm beyond the original
  3710. evaluation period is prohibited.
  3711.  
  3712. AceComm may NOT be modified in any respect, for any reason, including but not
  3713. limited to, de-compiling, disassembling, or reverse engineering of the
  3714. program.  The opening title screen, help screens, and all other proprietary
  3715. program output must never be altered, removed, bypassed or modified by any
  3716. means.
  3717.  
  3718. You are free to distribute the PUBLICLY AVAILABLE evaluation version of AceComm
  3719. to others subject to the above restrictions and also the following:
  3720.  
  3721.    A.   No fee is charged for its use.
  3722.  
  3723.    B.  No re numeration may be accepted for AceComm.  This does not apply to
  3724.         computer access charges the system operators (Sysops) of or
  3725.         organizations owning bulletin board systems, on line services, etc...
  3726.         may charge subscribers.
  3727.  
  3728.    C.  AceComm must be copied in unaltered form, complete with files containing
  3729.         license information, the FULL documentation and all accompanying
  3730.         files.  The self-extracting archive distributed by MGP Programming
  3731.         Services must not be altered in ANY respect.
  3732.  
  3733.    D.  All shareware houses/distribution firms must make explicitly clear that
  3734.         the diskette purchase containing any shareware program has NOT
  3735.         registered the software with the author MGP Programming Services
  3736.         Software/Michael G Phelps.
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.        Page 56              Chapter 5  LICENSE
  3765.  
  3766.  
  3767.  
  3768. System Operators may make AceComm available for download only if the above
  3769. conditions are met.  The archive (Acennnn.EXE) distributed by AceComm or an
  3770. equivalent archive may be made available only in complete form.  Refer to
  3771. FILELIST.DOC to verify complete package contents.  If the contents appear
  3772. altered or not complete, you may obtain the latest release of AceComm directly
  3773. from MGP Programming Services by sending a formatted diskette labeled with the
  3774. word "AceComm".  Please include $5 for handling.
  3775.  
  3776. The latest version of AceComm is also available on Compuserve.
  3777.  
  3778. Commercial distributors of "Public Domain", "Shareware", and/or User Supported
  3779. software may distribute AceComm subject to the above conditions only after
  3780. obtaining WRITTEN permission from MGP Programming Services.  This condition
  3781. statement supersedes all previous agreements.
  3782.  
  3783. Please refer to the section entitled registration/ordering section for
  3784. additional information on registration, corporate site-licensing and related
  3785. topics.
  3786.  
  3787.  
  3788.  
  3789.  
  3790.  
  3791.  
  3792.  
  3793.  
  3794.  
  3795.  
  3796.  
  3797.  
  3798.  
  3799.  
  3800.  
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810.  
  3811.  
  3812.  
  3813.  
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.        Page 57              AceComm (tm) v 1.90
  3830.  
  3831.  
  3832.  
  3833. The above license statement does not apply to the REGISTERED version of
  3834. AceComm.  The registered software of MGP Programming Services is protected
  3835. under United States Copyright and Trademark Laws.  It must be treated just like
  3836. a book with certain exceptions as follows:
  3837.  
  3838.    A.  MGP Programming Services authorizes the making of archival copies of the
  3839.        registered software for the sole purpose of backing-up your software and
  3840.        protecting your investment from possible loss.
  3841.  
  3842.    B.  The medium on which the registered software is recorded is transferred
  3843.        to the customer, but not the title to the software.
  3844.  
  3845.    C.  The customer may resell or distribute unmodified copies of the
  3846.        registered software provided the customer has purchased from MGP
  3847.        Programming Services one copy of the registered software for each one
  3848.        sold or distributed.  The provisions of this software license shall also
  3849.        be applicable to third parties receiving copies of the registered
  3850.        software from the customer.
  3851.  
  3852.    D.  By saying, "just like a book", MGP Programming Services means that the
  3853.        registered software may be used by any number of people and may be
  3854.        freely moved from one computer location to another so long as there is
  3855.        ABSOLUTELY NO POSSIBILITY of it being used at one location while being
  3856.        used at another.  Just like a book that cannot be read by two different
  3857.        people in two different locations at the same time.
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.        Page 58              Chapter 5  LICENSE
  3895. Chapter 6  Contacting the author
  3896.  
  3897.  
  3898.  
  3899. You can get more help by contacting the
  3900. author Michael Phelps at the following
  3901.  
  3902. AceComm Software Support
  3903. ------------------------
  3904. - VOICE 602-846-4563 6 days 12-7pm MST
  3905.  
  3906. - BBS   602-846-2940 24 hours
  3907.  
  3908. - COMPUSERVE User ID 75120,3306
  3909.  
  3910. - FIDONET ADDRESS 1:114/35
  3911.  
  3912. - FIDONET COMM echo
  3913.  
  3914. - FIDONET ACECOMM echo
  3915. I distribute the "ACECOMM" echo to
  3916. USA NODES, until it makes BACKBONE.
  3917.  
  3918. - Write to: MGP Software (AceComm)          * New address takes affect with
  3919.             BOX 301 C  Route 3                AceComm 1.85 release. Phone
  3920.             Detroit Lakes, MN 56501 USA       lines will remain the same until
  3921.                                               we actualy move later this year.
  3922.  
  3923.  
  3924.  
  3925.